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

  1. ;C
  2. ┌─────────────────────────────────────────────────────────────────────────────┐
  3. │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░    EXAMPLE # 5    ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
  4. └─────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────────────────┐
  6. │                                                                             │
  7. │                                                                             │
  8. │ THE INPUT FILE:  List of acts for a talent agency.  This file is 354        │
  9. │                  characters wide -- far more than the normal 255 character  │
  10. │                  limit for input lines.                                     │
  11. │                                                                             │
  12. │ WHAT WE WANT:    Copy the name, phone number and description fields only.   │
  13. │                  The output should be in comma-delimited format.            │
  14. │                                                                             │
  15. │ HOW WE DO IT:    (1) We use the SPLIT command to break up the lines.        │
  16. │                  (2) We use TRIM to remove spaces.                          │
  17. │                  (3) We control parsing with a line counter (which will     │
  18. │                      will name LineCntr).                                   │
  19. │                                                                             │
  20. │                                                                             │
  21. └─────────────────────────────────────────────────────────────────────────────┘
  22.  
  23. ;P
  24.