Hi, newbie programmer here. I've given myself a crash course in C, and so that's the language I'm working in at the moment.
The problem I have is not so much with compiling, but with the resulting program. When I compile the program in Xcode, it does not work properly. It can't open a file: a call to fopen appears to return NULL.
When I compile the same files in the terminal, or in the Xcode debugging console, the program works fine. The call to fopen works and returns a non-NULL value. The issue only seems to be with running it in the terminal after it has been compiled in Xcode...
Any hints here would be well appreciated.
The problem I have is not so much with compiling, but with the resulting program. When I compile the program in Xcode, it does not work properly. It can't open a file: a call to fopen appears to return NULL.
When I compile the same files in the terminal, or in the Xcode debugging console, the program works fine. The call to fopen works and returns a non-NULL value. The issue only seems to be with running it in the terminal after it has been compiled in Xcode...
Any hints here would be well appreciated.