Ok this is for a bot, a user msg's text to search for in a .txt file on the bot's dir. and if the text the users enters is found in the .txt file it will /msg $nick the whole line of the .txt file. And it will search the whole .txt file and if multiple lines of text are found with the search item it will /msg the user all of them back to them.
An example:
User enters -
Then the bot searches a .txt file for the text "blah" and on each line the text "blah" is found it will /msg $nick [whole line] and will do that for each line the text "blah" is found on.
Hope this makes sense and you can help me.