title: In C++ can you output a file to a user specified directory?
body: <p>I'm just doing some work and the whole ofstream file("C:\mydir\blahblah\blah.txt") seems rather stiff.</p>
  
  <p>Is there a way to let a user cin a directory?  Recently I've mastered having a user define the file name itself with the .c_str() so would it just be a level beyond that?  Or considering the newbie stage that I'm on, would it just be easier to be satisfied with hard coding the directory in? Either way it'll be interesting code to study from. </p>