home *** CD-ROM | disk | FTP | other *** search
- PADOUT Version 1.6
-
- Syntax (From Command Line):
-
- PADOUT InFile OutFile [128]
-
- Where InFile is the Input File to be padded, and OutFile is the name you
- want for the resulting padded output file.
-
- [128] indicates an OPTIONAL "switch". If you want the file padded with
- spaces to the nearest multiple of 128 bytes, for Xmodem transfer, type
-
- PADOUT InFile OutFile 128
-
- Otherwise, omit the "128".
-
- PADOUT's filenames can also be inputted from within the program. Just type
- PADOUT at the DOS prompt, and PADOUT will prompt you for the filenames.
-
- ********************************CAUTION***********************************
-
- The Output file name, OutFile in our example, MUST be different than
- the Input file name. PADOUT cannot safely overwrite its' own input file!
- While some checking has been inserted to prevent duplication, it is still
- possible to get around this. USING THE SAME NAME FOR THE OUTPUT AS FOR
- THE INPUT WILL DESTROY THE INPUT FILE WITHOUT PRODUCING A USABLE OUTPUT
- FILE!
- ***************************************************************************
-
- PADOUT is a short program written in Turbo Pascal (tm) (compiled with
- Turbo Pascal 5.5) whose purpose is to "pad out" files to the nearest 1024
- or 128 bytes with blanks, Hex 00 characters, to permit the files to be
- cleanly transmitted using 1K Xmodem or standard Xmodem protocol. Xmodem
- uses 128 byte packets, and in the event of a file that is not an integral
- number of 128 byte packets, fills in the last packet with more or less
- random bytes from your computer. 1K Xmodem, sometimes called "YModem",
- particularly in older sources, does the same thing, but with 1024 byte
- packets. This can result in some files not functioning properly after
- Xmodem transfer. The problem occurs in particular with WordPerfect (tm)
- text files, where the "padding" added by Xmodem is treated as part of the
- document by WordPerfect. Since the padding added by Xmodem can be
- anything, it is not uncommon for WordPerfect to see the Xmodem padding as
- control codes which result in the document being unusable.
-
- PADOUT produces a new file on your disk, with a name that you specify
- either on the command line, or from inside the program, which is a copy of
- an original file that you specify, plus however many blank spaces (hex 00)
- that are needed to build the filelength up to an even multiple of 1024 or
- 128 bytes. The excess spaces are ignored from within WordPerfect version 5
- and if necessary can be deleted from wordprocessors harmlessly, and you can
- avoid random "noise" padding characters at the end of the file.
-
- PADOUT was written by Bill Larkins, sysop, Chevy Chase Board BBS,
- (703) 549-5574, July 1990, and is hereby released to the Public Domain.
-
- Acknowledgements: I would like to thank Michael Reuben, who called my
- attention to the padding problem of Xmodem and 1K Xmodem transfer, with
- particular regard to transmitting WordPerfect files. I would like to
- especially thank David Seidman, who suggested major revisions in PADOUT
- after reviewing the first version. The code in this version, 1.6, of
- PADOUT, is due more to David Seidman's kind assistance than to me.
-
- Disclaimer: PADOUT has not been tested on a wide range of machines,
- and its' performance cannot be guaranteed. Use at your own risk.
-
-