columns in a txt file

Hello, im kind of new in c++, and i want to do the following:

I have a txt file with 3 colums of data like this

1 4 5
1.2 43 0.9
0.3 1.1 90
... ... ...

and what i want to do is to take that data and save in 3 arrays c1, c2 and c3, for column 1, 2 and 3, i been tried but i can't, cause i don't know what to do with the "spaces" that there are no the same un all the lines, and i got some problems to take only the values, there is a simple way to do this??

Regards
Topic archived. No new replies allowed.