Re: Opening file with C++ iostream from application bundle

2009-04-22 Thread Scott Ribe
You need to use a full path, not count on the default directory--and others have provided code to get the path. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Opening file with C++ iostream from application bundle

2009-04-20 Thread Alexander Spohr
Am 19.04.2009 um 03:50 schrieb Carlos Eduardo Mello: 1. I know this is not the recommended way to open a file in a Cocoa App, but this is just a quick utility Your code is shorter than 2 lines Objective-C? for use in class, so I don't wan't to change my file loading code and deal with Fil

Re: Opening file with C++ iostream from application bundle

2009-04-19 Thread Carlos Eduardo Mello
Forgot...here is the file loading code bool ::LoadFromFile( string fileName, int which ) { ifstream fin; string temp, item; int itemCount, i; int lineCount = 0; fin.open( fileName.c_str() ); if(fin) { while( !fin.eof