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

Possibly Related Threads…
Thread Author Replies Views Last Post
  _Putimage Question. Pete 11 704 01-04-2026, 09:33 PM
Last Post: Pete
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
  NewBie Question niteflyer 2 345 11-06-2025, 07:11 PM
Last Post: Petr
  A Question About _MAPTRIANGLE Magdha 2 388 11-02-2025, 11:37 AM
Last Post: Magdha
  '$include: 'file.tmr' Timing Question pmackay 2 439 10-16-2025, 12:20 PM
Last Post: a740g

Forum Jump:


Users browsing this thread: 1 Guest(s)