title: Collect Data from Text File
body: <p>I'm trying to read in data from a text file. How would I do that from C++. Do I have use the input mode?</p>
  <pre><code>open(fileName,ios::in)
  </code></pre>
  <p>If so, then how to I read in data, in string form?</p>
  <p>Thanks</p>