added .txt to write.table