Posted By
SVS on 2019-05-12 14:48:28
| Re: Maximum Dimension of arrays in Basic
>>I write int the sequential file as number, but have to read as string. Couldnt get it running otherwise. I suppose the print# method convert always as string.
Yes PRINT# just put the characters of a numbers as ASCII codes, proceeded by " " if positive or by "-" if negative.
>>Is there a better method?
You can make things faster if you save (PRINT#) more data inside each single record. In this way you will read them with a single INPUT#. To do this you have to save a "," between the values when you use PRINT#.
For example: PRINT#2, 10,",",20,",",30 will be read by INPUT#2,a$,b$,c$
P.S. Nice work!!
|