1. Write your text to the file:
  2. Empty the file if it gets too full: