title: Writing to a file - file not created in Visual Studio 2015 (fstream)
body: <p>I checked my current working directory </p>
  
  <p>(C:\Users\Ada\Documents\Visual Studio 2015\Projects\ProjektPO\ProjektPO) </p>
  
  <p>and tried to create a new file there but I did not work. No errors,just won't create a file.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>(#include&lt;fstream&gt;)
  
  
  
      fstream file;
      file.open("C:\Users\Ada\Documents\Visual Studio 2015\Projects\ProjektPO\ProjektPO\file.txt");
      for (unsigned int i = 0; i &lt; cass.size(); i++)
      {
          file &lt;&lt; cass[i]-&gt;name &lt;&lt; ";" &lt;&lt; cass[i]-&gt;debt &lt;&lt; endl;
      }
      file.close();
      system("pause");
  </code></pre>
  
  <p>Any tips?</p>