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 >
Text File  |  2000-07-29  |  1KB  |  40 lines

  1. ############################################################################
  2. #
  3. #    File:     fixhqx.icn
  4. #
  5. #    Subject:  Program to strip headers from BinHex files
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     February 20, 1994
  10. #
  11. ############################################################################
  12. #
  13. #   This file is in the public domain.
  14. #
  15. ############################################################################
  16. #
  17. #  Sometimes Macintosh .hqx files come with commentary before the
  18. #  BinHex data.  This program strips off the heading material so that
  19. #  BinHex can be used.
  20. #
  21. #  Input comes from standard input and output goes to standard output.
  22. #
  23. ############################################################################
  24.  
  25. procedure main()
  26.    local line
  27.  
  28.    while line := read() do
  29.       line ? {
  30.          if ="(This file must be converted with BinHex 4.0)" then {
  31.             write(line)
  32.             break
  33.             }
  34.       else write(&errout, line)
  35.       }
  36.  
  37.    while write(read())
  38.  
  39. end
  40.