Instance Property

fileHandleForReading

The receiver's read file handle.

Declaration

@property(readonly, retain) NSFileHandle *fileHandleForReading;

Discussion

The descriptor represented by this object is deleted, and the object itself is automatically deallocated when the receiver is deallocated.

You use the returned file handle to read from the pipe using NSFileHandle's read methods—availableData, readDataToEndOfFile, and readDataOfLength:.

You don’t need to send closeFile to this object or explicitly release the object after you have finished using it.

See Also

Getting the File Handles for a Pipe

fileHandleForWriting

The receiver's write file handle.