title: Write a file in a specific path in C++
body: <p>I have this code that writes successfully a file:</p>
  
  <pre><code>    ofstream outfile (path);
      outfile.write(buffer,size);
      outfile.flush();
      outfile.close();
  </code></pre>
  
  <p>buffer and size are ok in the rest of code.
  How is possible put the file in a specific path?</p>