string.Contains method.StreamReader object
expects either the full path, or a relative path from the application's current directory. File.Exists method. The input
to the method is the file name, and the output is a bool value. Do not open the file unless this method
returns true. Optionally, if the method returns false, print an error message.
File.Exists.Here is some example output for this program:
Enter a file name: > C:\Users\Bob\Documents\name.txt Ella Fitzgerald Ron Carter Wayne Shorter Herbie Hancock Horace Silver Art Pepper Cannonball Adderley Dexter Gordon Oliver Nelson Joe Henderson Charlie Parker
Example #2:
Enter a file name: > name.txt No such file.
Email me if you get stuck!