changing file format to txt