I've never tried that sort of thing, but have you tried messing around with simply reading the first file in as an array of bytes, writing it to a new file, then reading the 2nd file in as an array of bytes and appending it to the new file?