I wanted to use fstream
to read a txt file.
I am using inFile >> characterToConvert
, but the problem is that this omits any spaces and newline.
I am writing an encryption program so I need to include the spaces and newlines.
What would be the proper way to go about accomplishing this?
See Question&Answers more detail:os