MonobjcMonobjc Documented Class Library
CreateFileAtPathContentsAttributes Method (path, contents, attributes)
NamespacesMonobjc.FoundationNSFileManagerCreateFileAtPathContentsAttributes(NSString, NSData, NSDictionary)

Creates a file at a given path that has given attributes and contents.

Original signature is '- (BOOL)createFileAtPath:(NSString *)path contents:(NSData *)contents attributes:(NSDictionary *)attributes'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool CreateFileAtPathContentsAttributes(
	NSString path,
	NSData contents,
	NSDictionary attributes
)
Public Overridable Function CreateFileAtPathContentsAttributes ( _
	path As NSString, _
	contents As NSData, _
	attributes As NSDictionary _
) As Boolean
public:
virtual bool CreateFileAtPathContentsAttributes(
	NSString^ path, 
	NSData^ contents, 
	NSDictionary^ attributes
)
Parameters
path (NSString)
The path for the new file.
contents (NSData)
The contents for the new file.
attributes (NSDictionary)
A dictionary that describes the attributes of the new file. The file attributes you can set are owner and group numbers, file permissions, and modification date. “File Attribute Keys” lists the global constants used as keys in the attributes dictionary. If you specify nil for attributes, the file is given a default set of attributes.
Return Value
YES if the operation was successful, otherwise NO.
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)