title: How do I rename a file with a string using the rename() function (c++)?
body: <p>Here is my code:</p>
  
  <pre><code>    rename("tmp.png", Filename);
  </code></pre>
  
  <p>The 2nd argument in the rename function is a string.(The user decides what the name is)
  How do I properly code this so that tmp.png is renamed to whatever the user types?</p>
  
  <p>My instructor says to use c_str somehow, But I'm not sure how.</p>
  
  <p>This is my first post, Let me know if it's hard yo understand or If I'm asking it wrong somehow..</p>