File handling
Use copy, (or cp in linux), it's a C program, if you want you can find the source code if you are resourceful. see below. If you want a c++ program source code, take the source you found and do "rename copy.c copy.cpp" ;~). It is silly to use an OO language to do a trivial utility.
see usage below:
C:\Users\ajm>ver > file1
C:\Users\ajm>ver > file2
C:\Users\ajm>copy file1+file2 file3
file1
file2
1 file(s) copied.
C:\Users\ajm>
C:\Users\ajm>dir file*
Volume in drive C is SQ004740V04
Volume Serial Number is 72CF-0846
Directory of C:\Users\ajm
11/06/2008 09:51 AM 40 file1
11/06/2008 09:51 AM 40 file2
11/06/2008 09:51 AM 81 file3
3 File(s) 161 bytes
0 Dir(s) 79,747,624,960 bytes free
×