MonobjcMonobjc Documented Class Library
WriteToFileAtomically Method (path, flag)
NamespacesMonobjc.FoundationNSDataWriteToFileAtomically(NSString, Boolean)

Writes the bytes in the receiver to the file specified by a given path.

Original signature is '- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool WriteToFileAtomically(
	NSString path,
	bool flag
)
Public Overridable Function WriteToFileAtomically ( _
	path As NSString, _
	flag As Boolean _
) As Boolean
public:
virtual bool WriteToFileAtomically(
	NSString^ path, 
	bool flag
)
Parameters
path (NSString)
The location to which to write the receiver's bytes. If path contains a tilde (~) character, you must expand it with stringByExpandingTildeInPath before invoking this method.
flag (Boolean)
MISSING
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)