Reading from ifstream won’t read whitespace July 17, 2022 by Tarik There is a manipulator to disable the whitespace skipping behavior: stream >> std::noskipws;