Add exit code.
1 for cannot open input file,and 2 for cannot creat output file.