Deleted .txt in file writing.