title: a way to search for strings in real time .txt or .log file for strings
body: <p>I am learning Java programming and I am doing well. </p>
  
  <p>I am working on this project at work. Let me carefully lay out what I need. </p>
  
  <p>My computer is connected to a tool I will call 'A'. This tool streams data to my computer 'B' in real time. </p>
  
  <p>Two logs are created: </p>
  
  <ul>
  <li><p>One on the screen that I can clear or save. </p></li>
  <li><p>Second one is a A log created in the background. </p></li>
  </ul>
  
  <p>Is there a way I can query this changing background log which is a copy of the data being streamed for predetermined keywords or strings and output that immediately on the screen? How do I go about this? what's the efficient way? How about listening to the ports. </p>
  
  <p>I just want to accomplish this in real time.</p>