home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / v / vsnbl220.zip / FCOUNTS.SNO < prev    next >
Text File  |  1991-02-14  |  245b  |  12 lines

  1. *    FCOUNTS.SNO
  2. *
  3. *    Sample program from Chapter 5 of the Tutorial
  4. *
  5.     &TRIM  = 1
  6.     CHARS  = 0
  7. NEXTL    CHARS  = CHARS + SIZE(INPUT)    :F(DONE)
  8.     LINES  = LINES + 1            :(NEXTL)
  9. DONE    OUTPUT = CHARS ' characters'
  10.     OUTPUT = +LINES ' lines read'
  11. END
  12.