ZennoLab Assemblies Documentation
FileAppendString Method
Example 

Type: System.String

Path to the file.

Type: System.String

Text to append.

Type: System.Boolean

true if append text in a new line; otherwise, false.

Appends line to the end of file
Syntax
public static void FileAppendString( 
   string path,
   string text,
   bool appendNewLine
)

Parameters

path

Type: System.String

Path to the file.

text

Type: System.String

Text to append.

appendNewLine

Type: System.Boolean

true if append text in a new line; otherwise, false.

Example
The following example shows call the FileAppendString method.
string path = {pathToFile};
string text = "it is new line in the file!";
bool appendNewLine = true;
FileSystem.FileAppendString(path, text, appendNewLine);
$path = {pathToFile};
$text = "it is new line in the file!";
$appendNewLine = true;
FileSystem::FileAppendString($path, $text, $appendNewLine);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback