Reads data representing a file’s contents from the receiver and writes it to the specified file.
Original signature is '- (NSString *)readFileContentsType:(NSString *)type toFile:(NSString *)filename'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |

- type (NSString)
- The pasteboard data type to read. You should generally specify a value for this parameter. If you specify nil, the filename extension (in combination with the NSCreateFileContentsPboardType function) is used to determine the type.
- filename (NSString)
- The file to receive the pasteboard data.

The name of the file into which the data was actually written.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)