home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / file_mgt / parse_m / exampl03.stx < prev    next >
Encoding:
Text File  |  1995-05-02  |  1.7 KB  |  25 lines

  1. ;C
  2. ┌─────────────────────────────────────────────────────────────────────────────┐
  3. │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░    EXAMPLE # 3    ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
  4. └─────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────────────────┐
  6. │                                                                             │
  7. │ THE INPUT FILE:  List of Bulletin Board Systems (BBS's) in Happyville       │
  8. │                                                                             │
  9. │ WHAT WE WANT:    The input file lists every type of bulletin board in the   │
  10. │                  city of Happyville, so we want to narrow down the list to  │
  11. │                  IBM bulletin boards that have file download capability and │
  12. │                  don't charge admission.  We also want certain header lines │
  13. │                  retained, to make the report easier to read.               │
  14. │                                                                             │
  15. │ HOW WE DO IT:    We maintain a counter (named HDRCNTR) to count the number  │
  16. │                  of times a dashed line appears between columns 1 and 11.   │
  17. │                  This lets us know when the actual data starts and ends.    │
  18. │                  While we're within the actual data, we can recognize the   │
  19. │                  bulletin boards we want based on the data in specific      │
  20. │                  columns of the report.                                     │
  21. │                                                                             │
  22. └─────────────────────────────────────────────────────────────────────────────┘
  23.  
  24. ;P
  25.