1:         character*20 word1, word2
   2:         integer ftell, fseek
   3:         open(1, file="/usr/dict/words")
   4:         iend = ftell(1)
   5:         iseek1 = fseek(1, iend/2, 0)
   6:         read(1,'(a)') word1
   7:         iword = ftell(1)
   8:         read(1,'(a)') word1
   9:         rewind 1
  10:         ibeg = ftell(1)
  11:         iseek2 = fseek(1, iword, 0)
  12:         read(1,'(a)') word2
  13:         write(*,*) ibeg, iword, ftell(1), iend
  14:         write(*,*) word1(:lnblnk(word1)), word2(:lnblnk(word2))
  15:         write(*,*) "seek status", iseek1, iseek2, fseek(1, -1, 0)
  16:         end
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1207
Valid CSS Valid XHTML 1.0 Strict