Page 1 of 1

Search and Verify Text

Posted: July 19th, 2007, 7:57 pm
by justonewren
I would like a plugin with 2 inputs:
1. a text string
2. a txt file

and a boolean output

$dll(SandV,1,text,test.txt,)

I want it to search the txt file to see if the text string exists in it. If it does, it will return a 1; if not, a 0.

For Example, a text file called numbers:

Code: Select all

one
two
three
four
five
$dll(SandV,1,four,C:\Program Files\LCD Smartie\numbers.txt,) would return a 1
$dll(SandV,1,4,C:\Program Files\LCD Smartie\numbers.txt,) would return a 0

Posted: July 20th, 2007, 11:15 pm
by limbo
That's easy friend.... :lol:
Take a look here:
http://forums.lcdsmartie.org/viewtopic. ... 2610#12610