Okay I have information in a "message.txt" that looks like this:
.296.294.255.268.313
.278.311.270.290.305
.322.252.276.286.301
I need the program to take every three numbers and add them, and write the result in the "message.txt". So the output would look like this:
845
859
871
879
863
I'm new to c++ and i'd appreciate if someone could show me how to do this.
I'm not sure what you're doing here. You say you want to add every 3 numbers? How do you get this output then? That's not any addition I know of. But look into the ifstream library.