The NSFileHandle class is an object-oriented wrapper for a file descriptor. You use file handle objects to access data associated with files, sockets, pipes, and devices. For files, you can read, write, and seek within the file. For sockets, pipes, and devices, you can use a file handle object to monitor the device and process data asynchronously.
Questions tagged [nsfilehandle]
139 questions
0
votes
1 answer
Recombining NSData objects after a download
I broke up a file into 50 mb packets on the server side and when I receive it on the iPad, I receive as NSData object through NSURLConnection. To restitch the data, do I create an empty NSMutableData object and just appendData the packets back…

Crystal
- 28,460
- 62
- 219
- 393
0
votes
0 answers
File Name form NSFileHandle
I am using an third party SDK for file handling, they have given some handles for file open, file read, file write. When i create the object of wrapper of that SDK using file path its calls those handle methods (File open, file read etc.).
I want…

Nilesh
- 1,493
- 18
- 29
-1
votes
1 answer
writing file with NSFileHandle in NSThread crash app
I attempt to write a file in thread because it freeze my app when writing but when i launch writing process it crash
2011-10-04 21:53:51.022 xxxxxxxxx[2046:6603] *** Terminating app due to uncaught exception 'NSFileHandleOperationException', reason:…

doc
- 266
- 2
- 15
-2
votes
2 answers
Is it possible to write a colored text in a file?
I need to write some logs in a .txt file and i want, for more clarity, colorize some text.
How can i do this trick?
Here my function
+(void)writeInLogFile:(NSString *)strLog inFolder:(NSString *)folder fileName:(NSString *)fileName…

johnnyBeGood
- 69
- 1
- 8