def readFile(filePath):
    """ reads a file, returning an array of lines in the file """
    lines = []      # or even lines = [l for l in file]
    try:
        file = open(filePath)
    except FileNotFoundError:
        print("Invalid File Path Provided")
    else:
        for l in file:
            lines.append(l)
    return lines