I'm not sure if this is possible but would like to ask if there's any way I could perform arithmetic on a file which I've created using file I/O.
For example,
I first input a number 5.
Then the next time I open my program and input 6, it will automatically add it up
and show me 11 on my .txt file.
Any hints to how I can make this happen? and how can I read the file from the program without going to my own .txt file?