Reply to comment

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.

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options