Open Text File of Numbers into an Array
Posted on 1998-12-06
I have a text file with a header row of variables and the rest as numbers in columns. I can open the file using getline but it reads the number rows as a string. What I then have to do is break each string of row numbers down by looking for tab spaces, converting the string to a number, and then saving it into an array. Can somebody please tell me the easiest way to open a text file of numbers with various rows and columns into an array?