/
$cs.File_AppendToFile

$cs.File_AppendToFile

Syntax

$cs.File_AppendToFile(string file, string text)

Description

Appends text to a file if the file exists.

Parameters

file

File to append text to

text

Text to append to file

Example

$cs.File_AppendToFile("$env:windir\System32\Drivers\etc\hosts","127.0.0.1 assets.cloud.barco.com")

returns nothing