user chooses where the file will be created, how can i do that?!

i need to create file and put there txt information from massive, but user have possibility to chose where save the file ?

cout<<" Where do you want to save the file ? "<<endl;
cin>>a; (/usr/home )
what should i do?!

I think you should read this: http://www.cplusplus.com/forum/beginner/6416/
Topic archived. No new replies allowed.