File_AppendToFile
Description
Section titled “Description”Appends a string to a file
Syntax
Section titled “Syntax”File_AppendToFile(sFile, sInsertString) As Boolean
Parameters
Section titled “Parameters”sFile (String)
Section titled “sFile (String)”Filename
sInsertString (String)
Section titled “sInsertString (String)”String to append to file
Remarks
Section titled “Remarks”- The string is added as a new line at the end of the file.
- The file must exist. If it doesn’t, the function returns False. To start a new file, create it first with File_CreateEmptyFile.
- The file is read and written as ANSI text. See Text file encoding.
Example
Section titled “Example”If bStatus Then bStatus = File_AppendToFile("C:\Temp\Test.txt", "Is the truth out there?")