That makes no sense. Are you ignoring the read in data properly?
I explain my desire program.. I want to build a mini financial program which you key in an amount daily and the saving left will be deducted, and the result will be stored in a text file. If I set the amount fix, the program can't work because when I need to close the program after I've done key in my spending.. so I need to read the last saving left to perform the next calculation is it?