I have an assignment that prompts the user for a file name, and then print the contents of the file out to the screen. If the file doesn't exist it prompts the user until it gets a file that exists. I have this working for a specific file, test.txt, but i was wondering if i could get this to work for files in general. Also if anyone could assist with my while loop i would appreciate it, its an infinite loop and just keeps repeating file doesnt exist. Heres my code: