Skip to content

File_AppendToFile

Appends a string to a file

File_AppendToFile(sFile, sInsertString) As Boolean

Filename

String to append to file

  • 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.
If bStatus Then bStatus = File_AppendToFile("C:\Temp\Test.txt", "Is the truth out there?")

Scripting Guidelines

File functions Constants Package Property Variables