Subject: From: Date: | Reading a text file into a number A.J. Griglak Fri, 3 Mar 2000 01:06:07 -0500 |
Fri, 3 Mar 2000 01:06:07 -0500
Can someone please explain how to read a text file into a Number Item in
ECS???
I have been looking at the TVL Parse event that's in Example.CFG and for the
life of me can't figure it out!!!
I have a text file called cur_temp.txt that holds the current temperature,
parsed from weather.com. It looks like this:
36degrees
I would like to have an Item in ECS that is of type number that I can do
something like
If cur_temp# IS LT 32
Then msg:It's Cold Set Speak
I just don't get the Set/Char operator and all the
Do Character-A Set/Char Text-A
lines...
Also, where in the Event TVL Parse is the actual filename of the text file??
Clueless,
-=A.J.
Can someone please
explain how to read a text file into a Number Item in ECS???
I have been looking
at the TVL Parse event that's in Example.CFG and for the life of me can't figure
it out!!!
I have a text file
called cur temp.txt that holds the current temperature, parsed from
weather.com. It looks like this:
36degrees
I would like to have
an Item in ECS that is of type number that I can do something
like
If
cur temp# IS LT
32
Then
msg:It's Cold Set
Speak
I just don't get the
Set/Char operator and all the
Do Character-A
Set/Char Text-A
lines...
Also, where in the
Event TVL Parse is the actual filename of the text file??
Clueless,
-=A.J.