• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File Input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Input


  • Subject: Re: File Input
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 1 Dec 2004 16:44:48 -0800


On Nov 29, 2004, at 8:53 AM, Danielle MacNevin wrote:



Hey there,

I've been looking into file input with Objective c in cocoa, but I haven't gotten very far. I've read over http://developer.apple.com/documentation/Cocoa/Conceptual/TextIO/ Tasks/UsingTextIO.html and http://developer.apple.com/documentation/Cocoa/Conceptual/Streams/ Articles/ReadingInputStreams.html a few times but I was looking for some more documentation and I wasn't coming across much on my searches.

I was wondering if someone knew of a site that had some good documentation on reading in files in objective c, or if anyone could provide some simple sample code.


If you just want to read files, then NSStream is not what you're after. See NSString and NSData's -initWithContentsOfFile: and -initWithContentsOfURL: methods.


-jcr




John C. Randolph <email@hidden> (408) 974-8819 Sr. Cocoa Software Engineer, Apple Worldwide Developer Relations http://developer.apple.com/cocoa/index.html


_______________________________________________ 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
  • Prev by Date: Re: cross development on Jaguar
  • Next by Date: CodeWarrior and Objective-C warnings
  • Previous by thread: Re: Debugging a crash
  • Next by thread: CodeWarrior and Objective-C warnings
  • Index(es):
    • Date
    • Thread