I was assuming the original files were of the same structure, so my suggestion was to gather all the records from the individual files into a single cursor first, then output it. Sorry I'm a bit swamped today or I would put together a snippet. If my assumption wasn't correct, this wouldn't work.
Bob
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'