title: c++ - fstream and ofstream
body: <p>What is the difference between:</p>
  
  <pre><code>fstream texfile;
  textfile.open("Test.txt");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>ofstream textfile;
  textfile.open("Test.txt");
  </code></pre>
  
  <p>Are their function the same?</p>