Hi guys,

I have a file containing lines like this one:

[double]_[double]_[double]_[int]_[int]\n

_ -> space. There are 5 values separated by space. I have already written a code in C that reads these kind of files. Now I need the same functionality using C++ code.
How to read line of a file this kind?
I have some ideas, but I haven't written much code in C++ managing files that's why I am asking for advice.

Also I have a struct(5 values the same types as above) and they need to be store the same way.

thanks.

Kacper