strangeryet
Programmer
I have a .txt file that I need to read and grab data from certain lines in the file.
I may need to do this just a few times during processing or perhaps a dozen times.
Is it better to open the file once and build an array of data with the information I might need....
OR
Is it better to open the file, extract the information, close the file, each time I need to get the data?
Thanks!
I may need to do this just a few times during processing or perhaps a dozen times.
Is it better to open the file once and build an array of data with the information I might need....
OR
Is it better to open the file, extract the information, close the file, each time I need to get the data?
Thanks!