I'm making a program in C++ that needs to acces files in the folder it is in. The problem is that both getcwd()
(from sys/stat.h
) and the directory .
(the current directory), refer to /usr/bin
(or something else), but I want that to be the directory the executable is in. Does anyone know how to change this
I'm using XCode 5.0.1 on OS X Mavericks.
I already read this question, but I couldn't find the "get info" item in the context menu of my product