MonobjcMonobjc Documented Class Library
ReadFileContentsTypeToFile Method (type, filename)
NamespacesMonobjc.AppKitNSPasteboardReadFileContentsTypeToFile(NSString, NSString)

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.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSString ReadFileContentsTypeToFile(
	NSString type,
	NSString filename
)
Public Overridable Function ReadFileContentsTypeToFile ( _
	type As NSString, _
	filename As NSString _
) As NSString
public:
virtual NSString^ ReadFileContentsTypeToFile(
	NSString^ type, 
	NSString^ filename
)
Parameters
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.
Return Value
The name of the file into which the data was actually written.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)