Update content of file