title: Retrieving data from text file
body: <p>My question is about getting continues data from text file. This is the description of the problem:</p>
  
  <p>My requirement is to save each line in a text file. This text file is feeded in unknown intervals by external sources. Also, and most important - when the file reaches amount of 100 lines (for instance) it archives these lines in an unreachable source and clear its content.</p>
  
  <p>Consider the situation where a listener peek at the file and see it contains 10 lines, the listener will take these lines and save them. Then after delta time (1 second, for instance) it peeks again and sees 93 lines. It saves the 83 that were unrecorded  as well.
  Now, when the listener peeks for the third time it sees 3 lines. It obviously saves them, but notice that there is a miss of 7 lines (indexed 94-100)  that were not recorded by the listener.</p>
  
  <p>It looks like that peeking at constant delta will not ensure that a miss wont happen.</p>
  
  <p>How would you suggest is the best way to achieve this requirement? </p>