What folder do I place a file to pass in as a command line argument in xcode 4?
I’m placing my list.txt file in the folder that xcode created but when I test for the existence of the file I’m getting NULL.I thought that when I edit the scheme and add list.txt
as an argument that the file would be passed in.
What folder do I place a file to pass in as a command line
Share
Either you should pass the full path to the file, or you need to figure out the working directory that Xcode launches the executable in:
and put your file in that dir.