Instance Property


The receiver's read file handle.


var fileHandleForReading: FileHandle { get }


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 readData(ofLength:).

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

var fileHandleForWriting: FileHandle

The receiver's write file handle.