put contents in file