I would like to read input data from text file with fstream.
But I don't know how to mix different type of get functions.
I would like to read for example numbers after char "="
I try to use something like this
char c;
double x;
while (!inFile.eof())
{
inFile >> c;
if (c == '=') inFile >> x;
}
But its wrong, and also didnt recognize eof.
I also would like to skip comments started with "#"
therefore I want to throw away lines,
but getline() does not work with no arguments