AddStringToFile

Top  Previous  Next

function AddStringToFile(sFileName As String, s As String) As Boolean

 

Adds the string s (inclusive a carriage return/linefeed) to the file sFilename.

 

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

 

Parameters

 

sFileName ... String expression. Absolute path and filename.
s ... String expression.

 

Example:

Dim s

 

= "feature executed successfully"

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




Translate document: