Automated text file generator