home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / fortran / ratfor.lbr / EXAMPLE.RTF < prev    next >
Encoding:
Text File  |  1986-04-27  |  384 b   |  19 lines

  1. # example.rtf    a simple example of a copy routine
  2.  
  3.     define(EOF,-1)
  4.     define(character,byte)
  5.  
  6.     character char
  7.     character getc
  8.  
  9.     call remark("enter <inputfile >outputfile.")
  10.     call initio
  11.  
  12.     while (getc(char)!=EOF)
  13.         call putc(char)
  14.  
  15.     call putc(EOF)
  16.  
  17.     stop
  18.     end
  19.