Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:05 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Size of data files in DOS MMBasic

Author Message
karjo238
Regular Member

Joined: 12/10/2018
Location: New Zealand
Posts: 60
Posted: 04:21am 09 Mar 2019
Copy link to clipboard 
Print this post

Hello there!

In among all the messing about I'm doing with MMBasic, I find myself needing to read text from a file that is about 2,600 lines long.

In the documentation, I couldn't find mention of any specific file size restriction, but I have overlooked such details before, so thought it best to doublecheck first.

Can you read from a text file that's probably not that big in terms of file size - just a bit lengthy?

Many thanks,

Joseph.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 05:50am 09 Mar 2019
Copy link to clipboard 
Print this post

The maximum string length is 255 bytes so as long as your lines are less than 255 bytes, you can read a line at a time and process as you go.
If lines are longer than 255 bytes, you can still work in small chunks.
2600 lines is a small file as far as the file system is concerned.

The actual file size limit will depend on the version of MMBasic.


Jim
VK7JH
MMedit
 
karjo238
Regular Member

Joined: 12/10/2018
Location: New Zealand
Posts: 60
Posted: 11:30pm 09 Mar 2019
Copy link to clipboard 
Print this post

Jim -

I suspected something like this would be the case, but I didn't want to assume and make an ass out of u and me, as my old boss used to say.

Many thanks,

Joseph
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025