I'm a comp sci major in college, and our default programming at school/home online console has got to be around 15+ years old now. I was tired of using it due to extreme lag... and started using XCode.
I'm past learning how to open files with C++, but our current assignment requires that one be open. What do I need to do to the file in XCode/Where do I need to put it so that my program can open it? Does it have to be in a specific folder or anything?
The file to be opened is Inventory.txt, and it's in the exact same folder as all the other .cpp and .h files. My coding for opening the program is flawless, as it works on the school's remote desktop'd unix, but at home I get the standard "Cannot open Inventory.txt!" that I added.
I'm using C++ Tool under command line utility.
I'm past learning how to open files with C++, but our current assignment requires that one be open. What do I need to do to the file in XCode/Where do I need to put it so that my program can open it? Does it have to be in a specific folder or anything?
The file to be opened is Inventory.txt, and it's in the exact same folder as all the other .cpp and .h files. My coding for opening the program is flawless, as it works on the school's remote desktop'd unix, but at home I get the standard "Cannot open Inventory.txt!" that I added.
I'm using C++ Tool under command line utility.