I have a text file which has one hex value in each line. Something like
80000000 08000000 0a000000
Now i am writing a c++ code to read this
... and the way to change it is to use noskipws: f >> std::noskipws; will set no skipping of whitespace until you use std::skipws manipulator.
noskipws
f >> std::noskipws;
std::skipws
But why do you want to read the '\n'? To make sure that there is one number per line? Is it necessary?
'\n'