add the function of read and write parameter file

the default file is "input_default.dat"