I want to parse a file to look for a word in it. I have to parse the file on the go. For e.g. a log file is created and modified by a software and at the same time I need to look for 'error'(for example) word in it.
The way I am doing right now is that I am parsing it periodically like polling. I hope there must be some way to make it efficient something like interrupts
Thanks