Is there a simple way of merging File1 and File2 into OutFile without the use of arrays, only using fstream?

File1:
111 Joe Smith
333 Steve Smith
555 Ron Smith

File2:
222 Don Smith
444 Randy Smith

OutFile:
111 Joe Smith
222 Randy Smith
333 Steve Smith
444 Randy Smith
555 Ron Smith