I am writing some code to read the contents of a very large .txt file (about 45 rows by 39000 columns) into a 2d array. Each number varies in size but they are each seperated by a tab.
The only major thing I have so far is a function to read the file and another function to make the 2d array in.
If you used char get() rather than string getline() inside a while loop you could write the characters up to the next space to an element of the array using a while condition of (!= " ").
It may be better to use a string vector rather than an array, loading with push_back () as you do not then need to identify it`s size (as you would with an array) prior to compile time.