Click or drag to resize

FileAppendText Method

Creates a StreamWriter that appends UTF-8 encoded text to an existing file.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static StreamWriter AppendText(
	string path
)

Parameters

path  String
The path to the file to append to.

Return Value

StreamWriter
A StreamWriter that appends UTF-8 encoded text to an existing file.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionInvalid Directory location specified.
IOExceptionFile System Error.
DirectoryNotFoundExceptionSpecified directory does not exist.
PathTooLongExceptionSpecified path is greater than 248 characters.
UnauthorizedAccessExceptionAttempting to delete a file the user does not have permissions for.
ArgumentExceptionThe specified path contains invalid characters.
ArgumentNullExceptionThe argument is null.
NotSupportedExceptionThe system does not support this operation.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also