0

i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root..

4
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by toko
0

Depends on the operating system. MS-Windows/MS-DOS (and probably *nix) if you don't specify otherwise the file will go in the current working directory where the program was started. If you use MS-Windows use Windows Explorer to search your program's source code directory and you will probably find it there. Or use the search feature to locate it.

0

>i was wondering whenever you create a file in c++ where does it go
If you don't supply a full path when opening a file, a relative path is used. That depends on how your system deals with relative paths, but I'd wager that you're on a system that uses the current working directory.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.