I am writing a program that takes a weblog, sorts the lines numerically, collects the unique IP addresses, asks the user for a specific IP address, and then shows all the page requests for that specific IP address. I built in my own error messages to let the user know when a file could not be opened. When I run the program, I get my error message for the second time SortedWeblog.txt is opened and i don't know why. if anyone can help, it would be appreciated.