home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MS DOS Archives 1
/
MS-DOS_Archives_Volume_One_Walnut_Creek.iso
/
msdos
/
txtutl
/
rembs1.arc
/
REMBS.DOC
< prev
next >
Wrap
Text File
|
1988-11-21
|
2KB
|
56 lines
REMBS - Remove Back Spaces
This program will remove backspaces from text files using the format:
REMBS oldfile newfile
entered from the DOS command line.
I use this program to clean up files of online "chats" which have a lot
of backspacing to correct typos. These backspaces (and the original typos)
show up when you later view or print the file.
After running REMBS your new file should appear with only the corrected
text intact.
This program can be modified to suit your needs. The QuickBASIC source code
is included for this purpose.
David Duani
Box 425
Stanardsville, VA 22973
Toad Hall Note, 20 Nov 88:
Snarfed from a local BBS, as I recall.
Worked fine as compiled BASIC but huge! (>30Kb!)
Rewrote in Turbo Pascal (v3.0, rewrite it yourself for newer versions).
Improvements:
Warns if your output file already exists.
Aborts if you try to output to your input file!
Gives you a running and final count of # BS's removed.
Doesn't clear the stupid screen!
There's an assumption in both these programs:
The backspace character (BS) is ASCII 8 (Ctrl H).
The BS character(s) follow erroneous character(s) ('typos').
However, since that's how a BS is usually used ...
Added a wee little test file (BOGUS.LOG) with backspaces for you
to play with.
Remember, now: if you de-archive all these files into one single
place (subdirectory, floppy, etc.) and try to run the program:
rembs bogus.log bogus.new
the REMBS.COM program will ALWAYS run! You have no way to make
the REMBS.EXE version run!
If you wanna try out the REMBS.EXE program, you should rename it to
something else (REMBS1.EXE, for instance). Specifically commanding:
rembs.exe bogus.doc bogus.new
won't work! (DOS just LOVES .COM programs...)
I considered rewriting to use DOS standard input and output, but decided
to leave that as 'an exercise for the student.' (That kinda stuff
baffles most non-'power users' anyway!)
David Kirschbaum
Toad Hall
kirsch@braggvax.ARPA