import csv


def read_in_data_from_file (environment, pathname):
    """
    Open file and read data into list of lists

    Parameters
    ----------
    environment : list of lists
        the datastructure into which the content of the input file is read.
    pathname : string
        represents the file name including the path if its not in the current
        working directory.

    Returns
    -------
    environment : list of list
        each element in environment contains one complete row of input file.

    """
    f = open(pathname, newline='') 
    reader = csv.reader(f, quoting=csv.QUOTE_NONNUMERIC)
    for row in reader: 
        rowlist = []
        for value in row: # A list of value
            rowlist.append(value)
        environment.append(rowlist)
    f.close()
    return environment