I changed my if statement into a while loop. When I input a file that exists, the loop stops. However, when I put a file that doesn't exist, it tells me that the file does not exist and prompts me to enter again. Then when I input a file that DOES exist, it tells me that it does not exist and becomes an infinite loop...
You are almost there.
The first creates a new inputfile (but your while condition still refers to the original)
The second points to the original. Now your while condition will evaluate with the changed file object
Joined: Nov 03, 2012
Ohh, I see. It works now Thank you so much for the help; I appreciate it!