Edit content of file