From Xojo Documentation

Shared Method

Opens the passed file so that text can be appended to existing text.


  • IOException for these conditions:
    • file does not exist
    • file is not writeable
    • containing folder is not writeable
    • the FolderItem is Nil
    • a system I/O error occurs

Sample Code

Using Xojo.Core
Using Xojo.IO

Dim f As FolderItem
f = SpecialFolder.Documents.Child("SaveData.txt")

Dim output As TextOutputStream
output = TextOutputStream.Append(f, TextEncoding.UTF8)
output.WriteLine("This text is appended to the end of the file.")
Catch e As IOException
Label1.Text = "Unable to append to file."
End Try