News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Default directory for files when no full path is given

Started by rudolf128, January 02, 2019, 06:13:38 AM

Previous topic - Next topic

rudolf128

Question is: if you don't specify file names using their full path (example: fopen(E:\\myfile.txt", ...), which is the default directory where files are read from or written to?
Thanks.

rudolf128

To make it clear, if I write for example: fopen("foo.txt", ...), which is the default directory for "foo.txt"?

oBFusCATed

Project -> Properties -> Build targets -> Your target -> Execution working dir
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]