title: file open in ofstream fails with no admin privileges c++
body: <p>I am using the following code to open a file in my program.</p>
  
  <blockquote>
  <pre><code>CString cstrOut;
  CString cstrFileName;
  cstrFileName.Format( "FinalSect%1d.txt", nSect+1 );
  std::ofstream echofile;
  echofile.open(cstrFileName);
  </code></pre>
  </blockquote>
  
  <p>This works fine but when I open a file without admin rights it can not be opened.
  Please help me.</p>