This is helpful thanks. I am also trying to read a file from a Mac OS X filesystem using C++.
I get the user to select the file location using the NSOpenPanel method and convert the URL to a const char inputFilename which looks something like this:
file://localhost/Users/.../DataFile.txt
But when I try to open the file with
inFile.is_open() returns an error.
Do I need to manipulate this path before using it in ifstream?