title: using fstream to read every character including spaces and newline
body: <p>I wanted to use <code>fstream</code> to read a txt file.</p>
  
  <p>I am using <code>inFile &gt;&gt; characterToConvert</code>, but the problem is that this omits any spaces and newline.</p>
  
  <p>I am writing an encryption program so I need to include the spaces and newlines.</p>
  
  <p>What would be the proper way to go about accomplishing this?</p>