I
Ivan Liu
I would like know how I can skip a line while reading
a set of input data (from a text file) if the first character
of the line is "#".
My original code reads:
ifstream Infile("data.dat");
for( int i=0; i<N; i++){
Infile >> x >> y;
}
a set of input data (from a text file) if the first character
of the line is "#".
My original code reads:
ifstream Infile("data.dat");
for( int i=0; i<N; i++){
Infile >> x >> y;
}