def readFile(path, fileName):
    """
    This function parses a file and stores the file's lines as a list.

    Parameters
    ----------
    path : string
        Path to directory containing file to be read in

    fileName : string
        The name of the file to be read in

    Returns
    -------
    lines : list of string
        Lines of input code
    """
    # Read File
    try:
        file = open(path + fileName, "r")
        lines = file.readlines()
        file.close()
    except IOError:
        raise IOError(path + fileName + " was not found or could not be imported.")

    return lines