Code::Blocks Forums

User forums => Help => Topic started by: MarkoAnte on April 11, 2018, 10:32:18 pm

Title: Running program from code blocks does not generate files
Post by: MarkoAnte on April 11, 2018, 10:32:18 pm
Hi,

I have a program that generates a .txt file. If I run the program form code blocks (build and run) the program runs, but does not generate the .txt file. But if i run the program directly form bin\debug it generates the .txt file.

I wrote the program a couple of month ago and it worked then, I wanted to change something now and I have this problem. Any ideas why?

Best regards,
Marko
Title: Re: Running program from code blocks does not generate files
Post by: oBFusCATed on April 11, 2018, 11:22:35 pm
Where do you expect the file to be generated?
What is the execution dir set in the project properties?

Hint the default is where the .cbp file is, not bin/debug!
Title: Re: Running program from code blocks does not generate files
Post by: MarkoAnte on April 12, 2018, 12:02:38 am
 oBFusCATed you are correct. Thank you very much.

Apparently I remembered incorrectly where it generated the file the first time.