in reply to multiple file reading
While not exactly the same as your question, you might consider the thread Comparing two files a great place to start.