# This asks the user for the name of a file, and then prints the file
# to the screen. Everything works fine if the file exists, but the
# program crashes if the file doesn't exist.

def PrintFile( fname ):
    F = open(fname, "r")
    for line in F:
        print line.strip()
        
def main():
    name = raw_input( "File name? " )
    PrintFile(name)

main()
