home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8577 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  897 b 

  1. From: tp923021@jarrah.canberra.edu.au (ben elliston)
  2. Sender: gateway@f262.n620.z3.fidonet.org
  3. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!manuel.anu.edu.au!sserve!f262.n620.z3!gateway
  4. Newsgroups: comp.lang.pascal
  5. Subject: Fast text file parsing
  6. Message-ID: <728078512.AA00322@f262.n620.z3.fidonet.org>
  7. Date: Tue, 26 Jan 1993 19:41:00
  8. Lines: 27
  9.  
  10. Hi.
  11.  
  12. I'm looking for some _fast_ text file routines for parsing files looking for:
  13.  
  14. - a command (ie. "DIRECTORY")
  15. - an argument (ie. "C:\FOO\")
  16.  
  17. so that, given the command, the argument can be quickly found, regardless of:
  18.  
  19. - the case of either words
  20. - their position in the line
  21. - but the may not be preceeded in the line by anything in the line but spaces.
  22.  
  23. For example:
  24.  
  25.               DiReCtOrY c:\foo
  26.  
  27. Would be found, but
  28.  
  29. ; directory c:\foo
  30.  
  31. Would not (and could be considered a comment instead).
  32.  
  33. Thanks.
  34.  
  35. Cheers, Ben
  36.  
  37.