Edit contents file