PATH_TO_FILE = "words2.txt"
import string

def loadWords2():
    try:
        inFile = open(PATH_TO_FILE, 'r', 0)
    #line of code to be added here#
    except IOError as e:
        print "The wordlist doesn't exist; using some fruits for now"
        return ['apple', 'orange', 'pear', 'lime', 'lemon', 'grape' , 'pineapple']
    line = inFile.readline()
    wordlist = string.split(line, ",")
    print "   ", len(wordlist), "words loaded."
    return wordlist
    
words = loadWords2()

print words