Сreate a file

Hello. How to create a file on a given path? So it would ask its name and path.
ofstream ( "mypath/myfile" );
http://www.cplusplus.com/doc/tutorial/files/
Thank you. But I can not find exactly how to specify the directory
mypath is the directory
Thank you for your help.
Topic archived. No new replies allowed.