created text file and wrote to it