MonobjcMonobjc Documented Class Library
InitWithContentsOfFile Method (path)
NamespacesMonobjc.FoundationNSDataInitWithContentsOfFile(NSString)

Returns a data object initialized by reading into it the data from the file specified by a given path.

Original signature is '- (id)initWithContentsOfFile:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithContentsOfFile(
	NSString path
)
Public Overridable Function InitWithContentsOfFile ( _
	path As NSString _
) As Id
public:
virtual Id^ InitWithContentsOfFile(
	NSString^ path
)
Parameters
path (NSString)
The absolute path of the file from which to read data.
Return Value
A data object initialized by reading into it the data from the file specified by path. The returned object might be different than the original receiver.
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.Foundation (Module: Monobjc.Foundation)