Codeblocks creates the text file in the home folder, instead of creating it in the Project folder. (Mac)
问题 So basically, I'm using CodeBlocks 13.12 on my mac. So when I try and run this code, it creates the file (filename.txt) in my home directory. However, I need it to create the file in my project folder instead as it does in windows. (for assignment purposes) Here's a list of things I do not want: 1)No additional code can be added. 2)I don't want to add an absolute path as it would not work in Windows. Here's what I want: I just want a setting the allows me to create the text file in my project