I remember seeing a very good example of a way to write code that would check for end of file on files that are being read that are too big to fit into memory. The problem I am trying to solve is to write a acript that will look for a pattern in a very large file and print the offset into the file. Anyone remember seeing the same thing?