P
philbo30
This should be easy; I have data in a text file arranged in a single
column that looks like this:
..123
..456
..789
..010
..936
..248
..235
..801
I need to open the file and extract the data into something (an array
perhaps) that looks like this:
double data [] = {.123, .456, .789, .010, .936, .248, .235, .801};
Opening the file is easy, but how do I load the array of values? Note
that a "\n" follows each of the values in the column.
column that looks like this:
..123
..456
..789
..010
..936
..248
..235
..801
I need to open the file and extract the data into something (an array
perhaps) that looks like this:
double data [] = {.123, .456, .789, .010, .936, .248, .235, .801};
Opening the file is easy, but how do I load the array of values? Note
that a "\n" follows each of the values in the column.