I have almost 2000 files with 4000 lines each. I have to access the files in pairs, i.e. I have to run my code 4 million times. Each time I run it, I have to read a char[14] and a float from each line in the pair of flies.
How do I do this? Do I read all the data into 2000 structs or do I open and close each pair of files as I go?
How do I do this? Do I read all the data into 2000 structs or do I open and close each pair of files as I go?