News:

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

Main Menu

default save locations for written files

Started by rooftopz, October 28, 2016, 09:12:06 PM

Previous topic - Next topic

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