Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Question on memory set aside for Zero
#4
Thanks Petr, I would have thought the 4 bytes would have accounted for any padding after a low number like 56, for example if the sequential numbers were 56 75 then any padding betweer the 6 and 7 would have been accounted for ( ie Seek #1,1 get me the 5 and Seek #1,5 gets me the 7)

Steve, I can't recall what the code was that entered the data in to the sequential file but I almost always would have used Write #??. In your example it makes so much sense that running thru the sequential file with just an Input # does eventually get me to the location where the data is located in the file but I have been using Seek # to find the location and just pick out the data I need rather than constantly running thru it all for one item of data at a time. Random access is what I should have done with this data file.

While I'm not sure of the code, the array was likely MyArray(1 to 50, 0 to 44), which I'm thinking would contain 50 x 45 x 4  (9000) total bytes where everything should be stored?? Is that correct? Or would I need to add a CRLF factor to that math??
Reply


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



Users browsing this thread: 15 Guest(s)