Update content of file according to client requirements