home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
fixhqx.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
1KB
|
40 lines
############################################################################
#
# File: fixhqx.icn
#
# Subject: Program to strip headers from BinHex files
#
# Author: Ralph E. Griswold
#
# Date: February 20, 1994
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# Sometimes Macintosh .hqx files come with commentary before the
# BinHex data. This program strips off the heading material so that
# BinHex can be used.
#
# Input comes from standard input and output goes to standard output.
#
############################################################################
procedure main()
local line
while line := read() do
line ? {
if ="(This file must be converted with BinHex 4.0)" then {
write(line)
break
}
else write(&errout, line)
}
while write(read())
end