title: Where does Xcode create .txt files to?
body: <p><a href="http://www.cplusplus.com/doc/tutorial/files/" rel="noreferrer">http://www.cplusplus.com/doc/tutorial/files/</a></p>
  
  <p>I just finished executing this but I didn't get any file on my desktop. </p>
  
  <p>So where does the .txt file get placed on my computer?</p>
  
  <pre><code>// basic file operations
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  using namespace std;
  
  int main ()
  {
      ofstream myfile;
      myfile.open ("example.txt");
      myfile &lt;&lt; "Writing this to a file.\n";
      myfile.close();
      return 0;
  }
  </code></pre>