Search and Verify Text
Posted: July 19th, 2007, 7:57 pm
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:
$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
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,4,C:\Program Files\LCD Smartie\numbers.txt,) would return a 0