save data in to local file