home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
txtutl
/
nocz12.arc
/
NOCZ.DOC
< prev
next >
Wrap
Text File
|
1989-10-13
|
2KB
|
50 lines
NOCZ.DOC
This little utility does only one thing, and it does that well. It strips
every ^Z (Ctrl-Z) from your document files. After you use this little
filter you file will have no Ctrl-Z's in it.
Why would anyone ever want to eliminate this little bugger? Simply in order
to read the entire file in which Ctrl-Z's are embedded. It's easy to create
a file with a Ctrl-Z in it by appending another part to it. If that
happens, then many, if not most, word processing programs will not be able
to read beyond the first Ctrl-Z.
Well, then why would MS-DOS put in that little bugger in the first place?
Unfortunately, the Ctrl-Z is a vestigial appendage and serves no useful
purpose, except to give people who write little utilities like this
something to do.
Syntax: nocz filename > newname
Enjoy...
---------------------
Toad Hall Tweak, Oct 89
Syntax: nocz [<] filename.typ [>output]
Input may be a proper path:\filename or redirection.
Output may be redirected as desired (default CON:).
v1.1, Oct 89
- Bumping working buffer to BIG...
- Simplistic PSP command line parsing didn't properly handle
DOS redirection/filter usage. Fixed.
(Still doesn't work as a pipe, however.)
- Added help (if no command line parms, no redirection).
- No reason at all to release memory .. unless maybe for piping?
v1.2, Oct 89
- Replaces Ctrl Z's with an innocuous space.
Cleaner code, file length doesn't change.
If you don't want this function and wish the Ctrl Z's
truly deleted, use v1.1.
Timing runs on a 122,000-byte file (with 1 Ctrl-Z towards the start):
Version Seconds
v1.0 34.72
v1.1 10.72
v1.2 10.43