add implementation egSaveFile