put contents directly to the file