How do I append to a text file without having to read every line of the file?

The special record number -4 can be used to output to the end of the file. For example, the statement

Print #5,-4;"Append this text"

would add the line "Append this text" to the end of the text file open on channel 5.