title: linux path in fstream
body: <p>i try to create a new file and save it in a subdirectory of the current folder ON LINUX</p>
  
  <p>the path(convert) should look something like markus/123456 where markus is an (existing) subdirectory and 123456 is the non existing file</p>
  
  <p>the strange thing is: it works when i dont use a subdirectory to say it short:</p>
  
  <p>"123456"          works and makes a file in the current directory</p>
  
  <p>"markus/123456"   dont works and does nothing at all...</p>
  
  <pre><code>ofstream handle;
  string convert = "1234";
  convert=name +"/"+ convert;
  cout &lt;&lt; convert&lt;&lt; endl;
  handle.open(convert.c_str(),ios::out); // dont works with subdirectory in string
  handle&lt;&lt;message;
  handle.close();
  </code></pre>
  
  <p>NOTICE: I am using linux not windows. I need a solution for linux (3.0.0-12-generic-pae).</p>
  
  <p>EDIT:
  Thx to one of the commends i found out its proberply a right problem. I post the code how i created the folder:</p>
  
  <pre><code>user::user(string aaa)
  {
      name=aaa;
      mkdir(name.c_str(),0600);
  
  }
  </code></pre>
  
  <p>NOTICE: I also tried it with 0666 without sucess. Still dont know how to do it right</p>