Re: Using C++ iostreams for file IO in Cocoa
Re: Using C++ iostreams for file IO in Cocoa
- Subject: Re: Using C++ iostreams for file IO in Cocoa
- From: Derrick Bass <email@hidden>
- Date: Wed, 1 Feb 2006 10:11:42 -0600
On Feb 1, 2006, at 8:15 AM, Dan Price wrote:
I much prefer using the C++ iostream for writing and
parsing text files. Can anyone suggest how I can use
it from the return of a an NSOpenPanel object? My
apps' core classes are already compiled as C++ and
Obj-C++ so this will allow me to replace the clunky
appkit code which currently handles IO for my core
classes.
Hope this into to vague.
iostreams take path names, so this should do it:
ifstream myStream( [[panel filename] fileSystemRepresentation] );
I haven't tested it, though.
Derrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden