;<<<<<<<<<<<<<
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
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
x) :
a. "(" & cr & "\[ )"
3. From matchText(tGroup,cr & pKey & "=" & "([^" & cr & "]*)", tResult)
a. "([^" & cr & "]*)"
Thanks again.
--Leston
>>>>>&
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
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
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
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