Opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file.
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- path
- Type:
System String
Path
- contents
- Type:
System String
Content to write
- encoding
- Type:
System.Text Encoding
The character encoding to use
- logOperation
- Type:
System Boolean
If true file operation is logged to File log
See Also