Export to text file.