Output to text file.