Creates a StreamWriter that appends text to a file on the specified path.
[Visual Basic] Overloads Public Shared Function AppendText( _ ByVal path As String _ ) As StreamWriter [C#] public static StreamWriter AppendText( string path ); [C++] public: static StreamWriter* AppendText( String* path ); [JScript] public static function AppendText( path : String ) : StreamWriter;
A new StreamWriter.
Exception Type | Condition |
---|---|
ArgumentNullException | path is a null reference (in Visual Basic Nothing). |
SecurityException | The caller does not have the required permission. |
ArgumentException | The file name is empty or contains only whitespaces. |
NGWS Runtime Security:
FileIOPermissionAccess | Append permission to the path. |
File Class | File Members | System.IO Namespace | File.AppendText Overload List