# L-28 MCS 260 Wed 16 Mar 2016 : readfilename.py
"""
Prompts the user for a file name and displays
an error message if the name given by the user
does not correspond to a file.
"""
NAME = input('Give the name of a file : ')
try:
    INFILE = open(NAME, 'r')
    print('opened \"' + NAME + '\" for reading')
    INFILE.close()
except IOError:
    print('file \"' + NAME + '\" does not exist?')
