File::WriteAllText Method
.NET Framework (current version)
Creates a new file, write the contents to the file, and then closes the file. If the target file already exists, it is overwritten.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | WriteAllText(String^, String^) | Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten. |
![]() ![]() | WriteAllText(String^, String^, Encoding^) | Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten. |
Show:

