Hi, i want to write from one file to another. i managed to get the file to write but not in the way i expected it too, there is more to the program but for now i just need to know how can i mirror one file...
My input file contains:
peter 3 / + - *
Dahne 8 + - / *
but my outfile saves as:
...... and so on
how do i fix this? i need it to look exactly like the input file for now
i dont know, im very new to this, i would have assumed by my text book that its reads dat files line by line and outputs it to the outfile, but it moves a line down every time it encounters a white space. ive tried using string variables but still nothing, either im getting one word per a line or one character per line.
the program itself has to have an input file that pre-filled. and a output file. from the input file it needs to extract the number and then do a switch for a calculation which ive done, then the outfile needs to save the name the /+*- symbols and the answer, my biggest hurdle is the file output, its not giving me the desired result