Docs for Split.com - Copies large file into 2 smaller files R. Trevithick, 12/16/87 This little program is simply a system for taking a large source file and breaking it into 2 smaller files. The original source file is not altered in any way, and still exists in addition to the 2 new files which are created. This can be handy if you end up with a file which is too large for your editor, or if you want to make something fit on floppies without using a backup type of program. It requires 3 command line parameters: Source file name Destination file name for 1st new file Destination file name for 2nd new file Note that if the source file has an odd number of bytes, the 2nd destination file will contain the one extra byte. If you want to later put the two smaller files back together again, you can use the DOS COPY command: copy/b dest1name+dest2name NewFileName Note that the /b switch is essential to get this to work properly. I've tested this with files ranging from 0 bytes to well over 5 megs, and haven't found any bugs. -------------Changes as of 12/16/87 revision---------------- - Ported over for Turbo C compiler (original was Datalight.) Code size reduced from 10K to 3K. - Eliminated all 'illegal' code, such as direct video writes. Should run on any MS-DOS machine now. - Increased internal buffer size to 30k. Program now prints a period as each buffer read operation occurs. - Added interrupt 24h handler to trap hardware errors. - Program now aborts with error message if you try to split a file which is less than 2 bytes long. There isn't much point cluttering up your disk with one or more zero-byte files. - Now deletes output file if a write error, such as disk full, occurs. - Eliminated some superfluous messages.