Writes the bytes in the receiver to the file specified by a given path.
Original signature is '- (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)mask error:(NSError **)errorPtr'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual bool WriteToFileOptionsError( NSString path, NSDataWritingOptions mask, out NSError errorPtr )
Public Overridable Function WriteToFileOptionsError ( _ path As NSString, _ mask As NSDataWritingOptions, _ <OutAttribute> ByRef errorPtr As NSError _ ) As Boolean
public: virtual bool WriteToFileOptionsError( NSString^ path, NSDataWritingOptions mask, [OutAttribute] NSError^% errorPtr )
Parameters
- path (NSString)
- The location to which to write the receiver's bytes.
- mask (NSDataWritingOptions)
- A mask that specifies options for writing the data. Constant components are described in “NSDataWritingOptions”.
- errorPtr (NSError%)
- If there is an error writing out the data, upon return contains an NSError object that describes the problem.
Return Value
YES if the operation succeeds, 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)