Search through file until no more data
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7940467/reading-huge-data-from-files-and-calling-them">Reading huge data from files and calling them</a>  </p>
</blockquote>



<p>I do not know how to search through a file, I have a file which has around 50 lines of data in this format (1.000 2.000 3.000) but I do not know how to do one line do a conversion(already have) then go to the next line do the same until it reaches the end, so basically do a process line by line until no more lines.</p>
