FileWriteAllText Method (String, String) |
Creates a new file, write the contents to the file, and then closes the file. If the target file already exists, it is overwritten.
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 10.0.0
Syntaxpublic static void WriteAllText(
string path,
string contents
)
Parameters
- path
- Type: SystemString
Path to file - contents
- Type: SystemString
Content to write
See Also