AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Finding text string in a file without FileRead

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
John B.



Joined: 21 Oct 2006
Posts: 21

PostPosted: Fri Nov 16, 2007 5:50 pm    Post subject: Finding text string in a file without FileRead Reply with quote

Hi,

This has probably been answered before, but running a search on "Find text in file" returns 35 pages of results. So...

Is there a straightforward way in AHK to search a file for a text string? All I need is a return value: Found/Not Found. I'm looking for a way to get around having to open the file and parse it for a matching string.

Thanks,
John B.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Nov 16, 2007 5:51 pm    Post subject: Reply with quote

FileRead
If InStr()
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
John B.



Joined: 21 Oct 2006
Posts: 21

PostPosted: Fri Nov 16, 2007 5:53 pm    Post subject: Reply with quote

OK, I can live with that Very Happy

Thanks,
John B.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group