This is a method (There are many methods around) :
Create two string variables (buffer)
Use the function fread. Read both two files (means storing all results into two string variables (buffer)). Each file you should use a different buffer.
Use the function fwrite, write all results into a single file...
Other methods that I know : ReadFile - WriteFile ..... Ifstream - Ostream...
(Take a google search if necessary)
Hope this helps (see the example above)
I know this is a C++ forum but you said nothing about programming in your post or what you needed to do, read a file, open a file, close a file, write.... People make such silly post on here, I was trying to be funny too :) I know it failed to be funny... :(
Normally we expect you to post your code of what you have tried, since there are a lot of students on here wanting someone to do their homework.
The simple way would be open a file
check to make sure it is open
open the output file
check to make sure it is open
read line
write line
continue until done
go to next file
I Like what JLBorges posted, I'll have to play withthat, I have not seen rdbuf() used before. If that works it looks much more condensed.
I am using a Libraries form Opencascade. I do not think necessary to post this coding here. One: It is to long to post from start, and second: Very different from c++ syntax. That is why!
Thank you very much for the answer,
some how busy with other staff now! I will post the possible answer soon!