I have a C++ project in XCode which uses std::fstream to work with a default text file.
I haven't specified a relative path so I expect that the file will need to be emplaced in the same directory as the executable (As in Windows). This would be my preferred method for now also.
The tricky part is that When I run the project from Xcode, I get the behaviour I expect - the text file is loaded and read. However if I run the executable from finder, I get nothing (Good Day Sir!).
This is the directory pointed to by Xcode under "Products" which takes me to the executable.
Has anyone experienced this behaviour before or know why this might be happening?