Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Default directory for files when no full path is given
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Default directory for files when no full path is given (Read 2533 times)
rudolf128
Multiple posting newcomer
Posts: 29
Default directory for files when no full path is given
«
on:
January 02, 2019, 06:13:38 am »
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.
Logged
rudolf128
Multiple posting newcomer
Posts: 29
Re: Default directory for files when no full path is given
«
Reply #1 on:
January 02, 2019, 06:19:56 am »
To make it clear, if I write for example: fopen("foo.txt", ...), which is the default directory for "foo.txt"?
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: Default directory for files when no full path is given
«
Reply #2 on:
January 02, 2019, 11:22:36 am »
Project -> Properties -> Build targets -> Your target -> Execution working dir
Logged
(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!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Default directory for files when no full path is given