0

When i run my project with the "Run main project" mode, my program writes the .txt file to my /home directory. I found this extremely odd, so I ran the program with "Debug main project" mode and it wrote the .txt file to the project directory. Is there a setting in options that will fix this so both modes will write the file to the project directory?

I have tried to make new projects with the same results

TheFuzz
  • 2,607
  • 6
  • 29
  • 48

1 Answers1

0

Most C++ projects in Netbeans have a Debug and Release configuration. Both of these may have different settings for running the program and should be checked to see if one of them specifies a "run directory".

If you right click on the root of the project tree and select properties, you will notice a drop-down at the top for "Configuration" that will allow you two switch between the two groups of settings. alt text

Arnold Spence
  • 21,942
  • 7
  • 74
  • 67