title: std::fstream doesn't create file
body: <p>I am trying to use std::fstream for io to file, and I want to create the file if it doesn't already exist.</p>
  
  <pre><code>  std::fstream my_stream
    my_stream.open("my_file_name",std::fstream::binary | std::fstream::in | std::fstream::out);
    if(!my_stream)
        std::cout&lt;&lt;"error"&lt;&lt;strerror(errorno);
  </code></pre>
  
  <p>I get this result:
           "No such file or directory."</p>
  
  <p>How can I create the file in this case?</p>