commit a text file