title: Reading N number of files using thread concept in java
body: <p>How to read N number of lines from a file using thread concept. </p>
  
  <p>Suppose a file contains N number of lines, Contents will be added dynamically. </p>
  
  <p>I need to read the line which contains the word "ERROR","Shutdown","Recovery","failed". </p>
  
  <p>Here I need to use the thread concept because, First time my file reads 1-100 lines and it is checking for the word,if there a particular word (Error, Shutdown, Recovery, failed) it should store it in a string. </p>
  
  <p>Next time my thread is starts to read after 2 minutes then it should start reading from the 101-200 lines, it should not read again from the first line of the file.  </p>
  
  <p>It should keep on continuously read the file after every 2 minutes. Please provide me related coding for the one I have requested.</p>