ZennoLab Assemblies Documentation
FileAppendString Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : FileAppendString Method
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.

Glossary Item Box

Appends line to the end of file

Syntax

C# 
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.
C#Copy Code
string path = {pathToFile};
string text = "it is new line in the file!";
bool appendNewLine = true;
FileSystem.FileAppendString(path, text, appendNewLine);
PHPCopy Code
$path = {pathToFile};
$text = "it is new line in the file!";
$appendNewLine = true;
FileSystem::FileAppendString($path, $text, $appendNewLine);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.