11-17-2024, 06:25 PM
Back in the day, Random access, RA, files took place of need to create an array for the file.
The file acted as the array you could read/write to, so changes were made directly without UDT array which we didn't have then anyway, though we had "fields".
I am starting to wonder if RA is best way to go these days. The longer you have the file open while processing, the more likely an error to occur eg a crash causing data corruption.
Now that we do have UDT arrays, just load the file data into it and process from that then when done rewrite the data file.
RA's are also nice if data file is HUGE! too big for UDT array?
The file acted as the array you could read/write to, so changes were made directly without UDT array which we didn't have then anyway, though we had "fields".
I am starting to wonder if RA is best way to go these days. The longer you have the file open while processing, the more likely an error to occur eg a crash causing data corruption.
Now that we do have UDT arrays, just load the file data into it and process from that then when done rewrite the data file.
RA's are also nice if data file is HUGE! too big for UDT array?
b = b + ...