Sign in to follow this  
Followers 0
keilamym

parsing a logfile help?

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



#3 ·  Posted (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 by keilamym

Share this post


Link to post
Share on other sites

had to add the file close command but works like a charm.. awesome.. thanks again

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0