Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Question on memory set aside for Zero
#12
As long as all the data is the same size, you can use SEEK with it.

01
11
31
47

^ All of those are going to be 4-bytes in length, in your file.  Two bytes for the data and two bytes for CRLF (on windows; only one byte for CRLF on linux/max).

But, if you have data like:

1
11
123
9
0
-321

^That data isn't going to be readable with SEEK.  Some is 1 byte.  Some is 4.  It's variable length data, and the only real way to read it is to read it sequentially.

It sounds like you got lucky once with data that was all the same size, like the first batch is above.  Unfortunately, it doesn't sound like the second batch of data you're using allows that.  It's more like the second set of examples I've posted above.  Your best bet is to just read it and convert it to a fixed-size data format.  Wink
Reply


Messages In This Thread
RE: A Question on memory set aside for Zero - by SMcNeill - 12-01-2024, 04:01 PM



Users browsing this thread: 1 Guest(s)