AddStringToFile

Top  Previous  Next

Sub AddStringToFile($fileName As String, $s As String) As Boolean

 

Adds the string $s (plus a carriage return/linefeed) to the file $fileName.

 

If the string could not be added, AddStringToFile returns FALSE.

 

Parameters

 

$fileName ... String expression. Absolute path and filename.
$s ... String expression.

 

Example:

Dim $s

 

$s = "feature executed successfully"

AddStringToFile("c:\mydocs\log.txt", $s)