I'm doing work with GPS and I have a file thats around 4Mb. It contains GPS information and my job is detect, correct, and output the results to another file which is in the same format. The file has around 30000 lines of text.
My problem is I'm reading in the data from the file into an array.
char array[30000][180];
I'm on a windows system and the first size of 30000 is too large. When I run the program, it crashes when creating that variable. 10,000 wont crash, but 10,000 obviously wont work for what I have to do.
So, ideally, how I do read just one line, do what I need to do to the data, and write it or store it and move on to the next line?