Public Function AppendStringToFile( _
ByVal vString As Variant _
, ByVal vFileName As Variant _
) As Boolean
Append a string to the named file. Example:
The file is created if it does not already exist.
Function returns True upon success and False upon failure.
AppendStringToFile("Test.", "C:\Test.Out") = True
FileToString("C:\Test.Out") = "Test."See also:
StringToClipboard FunctionvString: The String that will be added to the file named vFileName. vString defaults to an empty string ("") if it is Null or cannot be fixed-up to a string.
vFileName: Name to the file to which the string vString will be appended. Function returns False if vFileName is Null or cannot be fixed-up to a string.
Careful: Note that the order of the arguments is as implied by the function name--String then FileName.
Warning: This function does NOT add any carriage return nor newline characters around the string.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.