use File to save and restore data