Is there anyway to do Files Handling in Objective-C? I am just trying to do simple read and write and can use 'c' but i am force to use Objective-C classes for that :@. I am looking into NSInputStream, but its going over my head. Is there any tutorial which explains how to use NSInputStream?
A:
I find apple's guides short and to the point. http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Streams/Articles/ReadingInputStreams.html
Jesper Madsen
2010-09-11 20:36:11
I am also reading this from last 30 min, but its not helping me :(
itsaboutcode
2010-09-11 20:46:37
+1
A:
If all you need to do is really simple I/O, you can just tell an object to initialize itself from, or write itself to, a filesystem path or URL. This works with several Foundation classes, including NSString, NSData, NSArray, and NSDictionary among others.
Try starting out by looking at the following two NSString methods:
jlehr
2010-09-11 20:51:43
You're welcome. I love the Foundation framework for this and a bazillion other reasons. :-)
jlehr
2010-09-11 21:36:36