I have a text file that is auto-generated by an application when it is started. I want powershell to read that text file continously(even while another application writes info into that file) and stop reading once it finds a word started. Once it finds that specific word by making it as an end of file, it should find and display the lines containing the words I specify.
In short: 1) Powershell to read the text file continuously until it finds a word started
2) Find for some words(eg:info) from start of file upto started and display the whole line containing that particular word(info).
Any help would be really appreciated..