Persist model to flat file