Output information into a text file.