In The Hand LtdIn The Hand
WriteAllText Method (path, contents)
NamespacesInTheHand.IOFileHelperWriteAllText(String, String)
.NET Components for Mobility
Creates a new file, writes the specified string array to the file, and then closes the file. If the target file already exists, it is overwritten.
Declaration Syntax
C#Visual Basic
public static void WriteAllText(
	string path,
	string contents
)
Public Shared Sub WriteAllText ( _
	path As String, _
	contents As String _
)
Parameters
path (String)
The file to write to.
contents (String)
The string to write to the file.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is a null reference (Nothing in Visual Basic) or contents string is empty.

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0