Please send questions to st10@humboldt.edu .

# contract: showit: string -> void
# purpose: to display the contents of a file in the
#          current working directory named <aFileName>
#          to the screen
# example: if a file stuff.txt contains the first 3 integers,
#          each on its own line, then showit("stuff.txt") should
#          result in the following being printed to the screen
#1
#2
#3
#    

def showit(aFileName):
    myReadFile = open(aFileName, "r")

    nextLine = myReadFile.readline()

    while (nextLine):

        print nextLine,

        nextLine = myReadFile.readline()

    myReadFile.close()