TFQA: Tools for Quantitative Archaeology - Statistical Analysis Software for Archaeology TFQA
TFQA Logo

TFQA: Tools for Quantitative Archaeology
     kintigh@tfqa.com   +1 (505) 395-7979

TFQA Home
TFQA Documentation
TFQA Orders
Kintigh(ASU Directory)


SPLIT: Split One File into Several

      SPLIT is used to divide a large file into sections. One use is to copy a hard disk file larger than will fit onto a floppy disk onto the necessary number of floppy disks. If a printed database listing is 600K long, and you want to move it onto floppies so you can use it on another machine, SPLIT can divide the file into 2 300k pieces. The DOS copy command can recombine the files if this is desired (COPY file.1+file.2+...file.n file.out). The program will deal with files of any size (up to 32 MB). Files can be of any type; they need not be pure ASCII files, however, for binary files you must use the /B switch on the DOS copy command to recombine the files. To run SPLIT type SPLIT<Enter>.

DESCRIPTION OF PROGRAM PROMPTS

Input File ?

      The file or path name of the file to split up. This file is only read, it is not changed in any way.

Output File {xxxxxxxx.1} ?

      The program prompts for the name of the output file name. If you are copying files to a floppy disk, the program does not check to make sure that the disk is formatted or that there is room on the output disk for the file you have specified. Also, make sure you have enough, formatted floppy disks.

Split by [K]B of File Size, [L]ine, or [P]age {K} ?

K Increment for Split ?

Line Increment for Split ?

Page Increment for Split ?

      The first prompt requests information about how you want to split up the file. If you reply "K" to the first and "360" to the second prompt, the input file will be divided into 360K sections. The "K" option is useful if you simply want to transfer a large file on floppy disks to another hard disk computer (the DOS BACKUP command can also be used to accomplish this). If you have a printed report that contains form feed characters, in order to divide the report on page boundaries (e.g. for printing on a floppy disk computer with a laser printer) reply with "P" and a number of pages. Finally, specify "L" and a number of lines to divide a file into sets of so many lines. If your printed report does not contain form feed characters, in order to divide the report on page boundaries find out how many lines are printed on a page and use this number. (To copy only the first N lines of the file press <Ctrl><Break> at the prompt for the second file name.)

Next Output File Name {xxxxxxxx.2} ?

      The program has filled the current output file and needs the name of the next output file.

  nnn Lines Copied

  nnn Pages Copied

  nnn K File Copied

Program End

      These messages indicate the program has finished normally.

SAMPLE INTERACTIVE RUN

Input File ? LIST.LST
Output File {LIST.1} ? A:LIST.1
Split by [K]B of File Size, [L]ine, or [P]age {K} ? L 
Line Increment for Split ? 60
Next Output File Name {A:LIST.2} ? 
     97 Lines Copied 
Program End  
Home Top Overview Ordering Documentation
Page Updated: 5 February 2026