put text into the file