Ok, so what is the format of the text file?

I would assume you have more than 2 subject names and you are wanting to test each against each other.

Consider the code you have above. In the while...