Archive: FileRead help


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.


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.


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