zots
Re-member
in my app i need to read/write data to some sort of preference file. NSFileHandle seems to be what i need. below i am trying to simply read all the data of the file into an NSData. the second line instantiates the NSFileHandle w/o error, but i am unsure of what the object/receiver(xxxxx) would be when i call readDataToEndOfFile.
TIA
Code:
NSData *aData;
[NSFileHandle fileHandleForReadingAtPath:@"/Applications/Test/Test.txt"];
aData = [xxxxx readDataToEndOfFile];