Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Question on memory set aside for Zero
#3
Looks to me like what you're seeing is data that was written using PRINT and LINE INPUT rather than GET/PUT

56 + CRLF = 4 byte
0 + CRLF = 3 bytes... <-- these 0's are throwing your data off.

Sounds like you just need to:

DIM data_array(2500)
OPEN "data_file" FOR INPUT AS #1
DO UNTIL EOF(1)
    count = count + 1
    INPUT #1, data_array(count)
LOOP
CLOSE

For deeper analysis, you'd need to supply the actual file for reference, but from your post's example layout, I imagine that's more or less the issue.
Reply


Messages In This Thread
RE: A Question on memory set aside for Zero - by SMcNeill - 11-30-2024, 03:33 PM



Users browsing this thread: 5 Guest(s)