MonobjcMonobjc Documented Class Library
ContentsAtPath Method (path)
NamespacesMonobjc.FoundationNSFileManagerContentsAtPath(NSString)

Returns as an NSData object the contents of the file at at given path.

Original signature is '- (NSData *)contentsAtPath:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSData ContentsAtPath(
	NSString path
)
Public Overridable Function ContentsAtPath ( _
	path As NSString _
) As NSData
public:
virtual NSData^ ContentsAtPath(
	NSString^ path
)
Parameters
path (NSString)
The path of a file.
Return Value
The contents of the file specified by path as an NSData object. If path specifies a directory, or if some other error occurs, returns nil.
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)