Program : Split.EXE
Author  : Panagiotis Dimou, pdimou@csd.auth.gr
Date    : 29/1/2000
Purpose : No particular purpose, just needed one such tool for DOS
          (without the additional compressing stuff of winzip or winrar),
          and of course for practice and fun!
Function: This program splits big files into segments of smaller size
          (e.g. for copying each segment into a floppy disk).
          The files can be either binary or ascii (they are treated as
          binary). The size of each segment may be optionally given by the
          user (the default is 1423.5 KB which is the capacity of one 1.44
          floppy disk). Optionally, the program can produce an ascii log file
          containing the name of the input file and (in the right order) the
          names of the segment files. This log file can be later used by the
          merge program to reassemble the initial file.
Input   : 1) The (path and) name of the big file that is to be splitted,
          2) The size of each segment in KB (optional, the default is 1423.5),
          3) The name of the log file (optional).
          The inputs are given in the above order at the command line.
Output  : A number of segment files. The names of the files are consisted of
          i) the name of the big file (without the extension) and extension
          .001, .002, ... (DOS/WINDOWS). E.g. if the big file is SomeFile.EXE,
          then the segments are SomeFile.001, SomeFile.002, ...
          ii) the full name of the file plus the extension (UNIX like). E.g.
          if the big file is SomeFile.tar.z, then the segments are
          SomeFile.tar.z.001, SomeFile.tar.z.002, ...
          If the user has given a log file then this file is also created.
          The format of that file is (for the same example):
          SomeFile.EXE
          SomeFile.001
          SomeFile.002
          ...
          (for DOS)
          or
          SomeFile.tar.z
          SomeFile.tar.z.001
          SomeFile.tar.z.002
          ...
          (for UNIX)

Notes   : 1) A limitation in DOS is that the file names must follow the
             8.3 format. This limitation doesn't apply in UNIX-like OS.
          2) The number of the output segments must be at most 999.
          3) The size of the input file can be at most 2GB.
          4) The segment files are created in the same directory as the
             initial file. This doesn't necessary apply to the log file.
          5) If any error occurs during the procedure, then a cleaning up
             of the so far created segment files is being attempted.
          6) The code is written strictly in ANSI C, so it is
             protable in UNIX-like with only one small change. 
             Anyone who wants a Unix executable, may feel free to contact 
             me in the above e-mail.  

============================================================================================
============================================================================================

Program : Merge.EXE
Author  : Panagiotis Dimou, pdimou@csd.auth.gr
Date    : 30/1/2000
Purpose : No particular purpose, just needed one such tool for DOS
          (copy /b is not adequate when you have lots of files to merge:
          you  have to do the merge in many steps) and of course for
          practice and fun!
Function: This program merges smaller files into a bigger one: its function
          is identical to copy /b DOS command without the limitation of 255
          characters in the command line and therefore the limited number
          of the files for merging in a single step.
          The files can be either binary or ascii (they are treated as
          binary). The size of each segment can be anything but if the
          segmented files are created with split, then they all (except of
          the last) have the same size.
Input   : 1) The (path and) name of the log file which contains information
          about the name of the output file and the names and order of
          the input files.
          The format of that file is :
          SomeFile.EXE
          SomeFile.001
          SomeFile.002
          ...
          (for DOS)
          or
          SomeFile.tar.z
          SomeFile.tar.z.001
          SomeFile.tar.z.002
          ...
          (for UNIX)
          where Somefile.EXE (or SomeFile.tar.z) is the big file that is to
          be created and SomeFile.001,Somefile.002,... are the segment files.
Output  : A big file that consists of all the segmented files in the
          appropriate order.
Notes   : 1) A limitation in DOS is that the file names must follow the
             8.3 format. This limitation doesn't apply in UNIX-like OS.
          2) The size of each input file can be at most 2GB.
          3) If any error occurs during the procedure, then a cleaning up
             of the so far created output file is being attempted.
          4) The code is written strictly in ANSI C, so it should be
             protable with minimal changes.

***************************************************************************
THE PROGRAMS SPLIT.EXE AND MERGE.EXE ARE FREEWARE. YOU CAN DISTRIBUTE 
IT FREELY AS LONG AS YOU A) DON'T CHARGE THEM B) MAKE A REFERENCE TO 
THE AUTHOR.
OF COURSE, THERE IS NO WARRANTY FOR ANYTHING, (DATA LOSS, DAMAGE, SUPPORT , ETC).
***************************************************************************