I am attempting to read in a text file and loop through each character of the file as I will be modifying each character as it's read in. I noticed that all the spaces from the file are not being read. How can I keep the spaces so that I can modify them?
1 2 3 4 5
while (inFile)
{
inFile >> fileChar;
cout << fileChar;
}