User forums > Help

default save locations for written files

(1/1)

rooftopz:
where do files go that were created in code blocks? i was told files would be in the same directory as the project, but it is not. I'm on a mac, if that makes a difference. how can i change this?

BlueHazzard:
what files? The binary files? They should be in a sub folder of your project folder... You can see and set it under
Project->Properties->Build targets->Output filename

greetings

rooftopz:
its just a file that the program can write things to, but they're not created in the same directory. i had to use spotlight to find it, it was in the home directory, so the only way to find it was through using spotlight. I'm not using a project, its just an empty file. do you know how to change default settings for i/o files?

BlueHazzard:
codeblocks is not made to work without projects. I don't know any way, or even the behavior of the working directory if you don't use projects....

If you use project you can set the working directory here:
Project->Properties->Build targets->Execution working dir


Navigation

[0] Message Index

Go to full version