keilamym Posted March 31, 2011 Share Posted March 31, 2011 hello everyone... can someone please let me know how to do this.. i need to read a log file named history.log if the logile has the text "AppReg.dll" in it, then i'll have it do some commands.. i've read files in the past but dont know how to seach within it for a line of text. this is not a .ini file so i cant use iniread. any and all assistance will be appreciated. Link to comment Share on other sites More sharing options...
saywell Posted March 31, 2011 Share Posted March 31, 2011 $file = Fileopen(...) $string = fileread ($file) $test = stringinstr ($string,"AppReg.dll") If $test <> 0 then do stuff endif William Link to comment Share on other sites More sharing options...
keilamym Posted March 31, 2011 Author Share Posted March 31, 2011 (edited) $file = Fileopen(...) $string = fileread ($file) $test = stringinstr ($string,"AppReg.dll") If $test <> 0 then do stuff endif William this is awesome... i'll try it after lunch.. thanks william... cant send beers to the UK can i? lol Edited April 1, 2011 by keilamym Link to comment Share on other sites More sharing options...
keilamym Posted April 5, 2011 Author Share Posted April 5, 2011 had to add the file close command but works like a charm.. awesome.. thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now