Needs more information.
For example, just use getline() to read a whole line at a time and dump it to the output with a cout.
If you need something more precise, them please specify.
Ok, I'm beginning to understand what is needed now.
Can I suggest that you use the formatting options when you post - see the Format buttons on the right. It helps to preserve the spacing so that the proper layout can be seen.
In this case, the [output] put the text here [/output] would be useful.
I think it's something like this (but I may be wrong): output window:
That was my input stream. I tend to use fin and fout for input and output, but that's not important, it's just a name, equivalent to infile in your code.
but since i defined the variables it doesnt come out right. it shows alot of decimal like 25.0000000
When you use cout << fixed the number of decimal places shown depends on the precision.
Try cout << fixed << setprecision(2);
k i got that problem fixed.
Now for some reason it doesnt open my Numb.txt
its saying File Not found.
my professor said to use C:\\.......\\numb.txt
i tried that but it couldnt find it either