home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
snobol4
/
vsnobol4.arc
/
WDSTAR.SNO
< prev
next >
Wrap
Text File
|
1987-12-04
|
513b
|
25 lines
* WDSTAR.SNO
*
* Convert wordstar files to ASCII by removing the high-order bit
* from all characters.
*
* To run:
* SNOBOL4 WDSTAR <input.file >output.file
*
* Set long record length to read a paragraph at a time.
* Trim trailing blanks.
*
&TRIM = 1
INPUT(.INPUT,5,5000)
OUTPUT(.OUTPUT,6,5000)
* Get high and low order character sets.
*
&ALPHABET LEN(128) . LOW LEN(128) . HIGH
* Do the conversion, and loop until end-of-file.
*
LOOP OUTPUT = REPLACE(INPUT,HIGH,LOW) :S(LOOP)
END