specify where to create a text file?

OK, I know how to create a text file, but it always creates the file in the same derectory where the program is. How do i change that?
like howabout saving a text file the C:\Windows\system32
?

thanks for any usefull help i may get!
fstream file ("C:/WhereEverYouWant/yourfile")
also the root slash "/" if using linux is where you start.

fstream file ("/home/uraccountname/directories/file or more directories/file");


Topic archived. No new replies allowed.