# L-28 MCS 260 Wed 31 Oct 2007 : readfilename1.py # # Prompts the user for a file name and displays # a message to confirm the name given on input. # With finally, the exception is still thrown. name = raw_input('Give file name : ') try: file = open(name,'r') finally: print 'opened ' + name + ' for reading...'