home *** CD-ROM | disk | FTP | other *** search
- FILE SPLITTER
- By Guy Cousineau
-
- I have seen several utilities for splitting files; while they all work, they
- usually create file segments of greatly varying sizes. 200 lines of text,
- for example can yield a 12K file, whereas 200 lines of source code could be
- as small as 3K. What I propose here is simplicity itself:
-
- Split reads in the source file 32K at a time and looks at the end of a
- segment for a <LF>. The file is cut off at that point and written to the
- first segment, then another 32K is read in. The process continues until the
- entire file is copied creating several 32K segments which all terminate at
- the end of a line.
-
- SPLIT is designed only to split large UNSQUEEZED or UNCRUNCHED files. It
- should not be used to split other file types such as .COM .REL, etc. The
- program does not care what file name you supply, it just does its job.
-
- SYNTAX
- SPLIT [d:]ufn [d:]nn [/N]
-
- Where the drive code is optional and only a drive code is accepted for the
- destination file(s); SPLIT uses the same file name and replaces the extents
- with numbers. eg
-
- LONG.DOC is split to LONG.D01, LONG.D02, etc.
-
- The /n option requests that no disk swap is made between read and write
- operations. Note that this feature is ignored when source and destination
- are different. Thus to quickly split LONG.DOC from drive A to drive A you
- type:
-
- A>SPLIT LONG.DOC /n<CR>
-
- The default split size is 32K. You can specify a different size from 10 to
- 48K with the following:
-
- A>SPLIT LONG.DOC 20 /N<CR>
- A>SPLIT LONG.DOC B:44<CR>
- A>SPLIT LONG.DOC 10<CR>
-
- The splitting process is very fast; just marginally longer that a COPY
- operation. Enjoy! send comments or suggestions to
-
- Guy Cousineau
- 1059 Hindley Street
- OTTAWA Canada
- K2B 5L9
-