To append to a file, use the openFile with "a" as the mode argument. The full documentation can be found at FileStream Values:
fs = openFile "c:/Temp/YourFile.txt" mode:"a"
print "This line will be appended to your file" to:fs
close fs
-- Insert some text in the middle of a file
fsadd = openFile "c:/Temp/YourFile.txt" mode:"a+"
skipToString fsadd "Some text to write"
skipToNextLine fsadd
print "Insert New Text" to:fsadd
close fsadd