Hi I'm trying to write a calculator program (w/basic arithmetic -=x%) that reads numbers from a file and writes the results to another file. File names that are specified by the user at runtime. For Example;
Enter input file name: numbers.txt
Enter output file name: results.txt
Specify operation: *
Specify operand: 3
Done
If the file numbers.txt contains: 2 8 3 0 4 4 1
then the file results.txt should contain: 6 24 9 0 12 12 3
Could someone help me here?
thanks in advance!