Hi!
I've got an assignment to read an input file and do some calculation and a graph and fancy stuff like that. The problem I am having is reading the file. I get a file that looks like this:
0.00 1.776e-12 3.756e-07 0.000e+00 0.000e+00
0.20 1.769e-12 2.377e-07 0.000e+00 0.000e+00
0.40 1.764e-12 2.145e-07 0.000e+00 0.000e+00
0.60 1.759e-12 2.177e-07 0.000e+00 0.000e+00
with the tab-whitespaces between columns, and I need to get each column into a vector so I can make calculations with them. I've been trying to do stuff like readline() to get the line, but I have no idea how to extract the numbers from the line, that is, I'm stuck at:
line = 0.00\t2.869e-12\t7.715e-08\t0.000e+00\t0.000e+00\n
Anyone got some tips?