Add the file to store the data

1.add the function to read the data already saved in the file,and you
can also save your new data in.
2.repare the bug in the function Inputdata that you can't input an
illegal data when you are asked to input a number.