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.
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual 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 )
![](../icons/collapse_all.gif)
- 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.
![](../icons/collapse_all.gif)
YES if the operation was successful, otherwise NO.
![](../icons/collapse_all.gif)
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)