re(2): parsing a INI formatted file

1999-11-03 Thread Leston Drake
;<<<<<<<<<<<<< To: [EMAIL PROTECTED] From: Ruediger zu Dohna ([EMAIL PROTECTED]) Subject:Re: parsing a INI formatted file Hi! I have not tried it, but propably something like the following is the fastest: function getIniValue t

re(2): parsing a INI formatted file

1999-11-03 Thread Dave Cragg
At 8:23 AM -0700 3/11/1999, Leston Drake wrote: >Could you help explain what the following mean, when used with the >MatchText function? I can try, but it's a long time since I put them together. Regex expressions must be the most unreadable form of writing devised. Almost as bad as a tax ret

re(2): parsing a INI formatted file

1999-11-03 Thread Leston Drake
x) : a. "(" & cr & "\[ )" 3. From matchText(tGroup,cr & pKey & "=" & "([^" & cr & "]*)", tResult) a. "([^" & cr & "]*)" Thanks again. --Leston >>>>>&

Re: parsing a INI formatted file

1999-11-02 Thread Ruediger zu Dohna
Hi! I have not tried it, but propably something like the following is the fastest: function getIniValue theFile,theGroup,theKey put false into groupFound repeat for each line aLine in url ("file:"&theFile) if not groupFound then if aLine is "["&theGroup&"]" then put 1

Re: parsing a INI formatted file

1999-11-02 Thread Phil Davis
There might be a simpler way: put url "file:inifile.txt" into tFile filter tFile with "*=*" Now tFile contains only those lines that contain "=", i.e. the value lines. If you only want the values without the names, add this: set the itemDelimiter to "=" put empty into tValueList

Re: parsing a INI formatted file

1999-11-02 Thread Dave Cragg
At 10:46 AM -0700 2/11/1999, Leston Drake wrote: >I have a data file (text) that is formatted in a standard Windows INI format. > >[Section 1 Header] >Item1= >Item2= >Item3= > >[Section 2 Header] >Item1= >Item2= >Item3= > >etc... > >I am reading the contents of this file into a container, and I w

parsing a INI formatted file

1999-11-02 Thread Leston Drake
Hi all, I have a data file (text) that is formatted in a standard Windows INI format. [Section 1 Header] Item1= Item2= Item3= [Section 2 Header] Item1= Item2= Item3= etc... I am reading the contents of this file into a container, and I want to parse it to pull out the Values. So I need to *s