Hi, I have written code using Visual Studio 6 under XP and i'm trying to port the code to Mac OS X under Xcode. I've narrowed my problem down to the fact that the compiled application under Xcode appears to convert my relative paths to absolute paths, which strangely enough default to the home folder. Code: char fileCarpetBlue128 = "CarpetTexture-128.raw"; The above code under Windows will load the texture as long as it is in the same directory as the .exe file. However under Mac OS X 10.5 with Xcode 3.0, it will try to load the folder from the home directory. eg: ~/CarpetTexture-128.raw I discovered this was happening by using this: Code: printf("cwd is: %s\n", getcwd(NULL, 0)); Can someone please tell me how to force the path to be relative to the application under OS X.