home *** CD-ROM | disk | FTP | other *** search
- From: tp923021@jarrah.canberra.edu.au (ben elliston)
- Sender: gateway@f262.n620.z3.fidonet.org
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!manuel.anu.edu.au!sserve!f262.n620.z3!gateway
- Newsgroups: comp.lang.pascal
- Subject: Fast text file parsing
- Message-ID: <728078512.AA00322@f262.n620.z3.fidonet.org>
- Date: Tue, 26 Jan 1993 19:41:00
- Lines: 27
-
- Hi.
-
- I'm looking for some _fast_ text file routines for parsing files looking for:
-
- - a command (ie. "DIRECTORY")
- - an argument (ie. "C:\FOO\")
-
- so that, given the command, the argument can be quickly found, regardless of:
-
- - the case of either words
- - their position in the line
- - but the may not be preceeded in the line by anything in the line but spaces.
-
- For example:
-
- DiReCtOrY c:\foo
-
- Would be found, but
-
- ; directory c:\foo
-
- Would not (and could be considered a comment instead).
-
- Thanks.
-
- Cheers, Ben
-
-