I am having issues opening a file in the same directory as the command line programme in mac. When I debug in xcode it finds the data. However when I run the unix executable file it cannot see the txt file in the same directory.
It always breaks out of the loop when not running in xcode.
If someone could point out where I have gone wrong that would be useful. I initially developed this under windows and it worked and am now trying to get it to work on mac.