Yathosho
20th October 2003 13:07 UTC
FileRead help
i want to search a text file for certain expressions. if the file includes these, a variable will be set to 1, otherwise to 0.
i guess this works with FileOpen/FileRead, but i havnt found any example that would help me.
example appreciated, thanks in advance.
kichik
20th October 2003 13:39 UTC
You should read the file line by line and pass every line to StrStr to figure out if that expression is there. The Archive has some examples of opening and reading files, all you have to do is make it call StrStr for every line.
Afrow UK
20th October 2003 18:05 UTC
There is a function on the archive which searches files for a certain string, then returns "yes" for found, and how many times it has been found.
http://nsis.sourceforge.net/archive/...ances=0,11,311
-Stu