Re: Cocoa version of the fstream lib?
Re: Cocoa version of the fstream lib?
- Subject: Re: Cocoa version of the fstream lib?
- From: Chris Ridd <email@hidden>
- Date: Fri, 06 Feb 2004 14:04:51 +0000
On 6/2/04 1:10 pm, Jeremyah Payne <email@hidden> wrote:
>
How would i do something like
>
>
ifstream fin;
>
>
fin.open("somefile.txt");
>
>
fin>>data;
>
>
fin.close();
If you use the Objective-C++ compiler instead of the Objective-C compiler,
you can mix C++ code (including things like the STL) with Objective-C.
Xcode will compile files ending in .mm using the Objective-C++ compiler.
There are some restrictions in Objective-C++ which you'll need to keep in
mind: C++ objects are not Objective-C objects, C++ memory management doesn't
apply to Objective-C objects, and probably some other things. Read the
documentation installed on your hard disk :-)
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.