def get_table_data(filename):
    """
    Method to take column information from DOL Meta-files
    and return a list of dicts containing field information.
    """

    table = []
    try:
        with open(filename, "r") as f:
            f_lines = f.readlines()
            for line in f_lines[2:]:
                data = line.split()
                table.append({
                    'name': data.pop(0),
                    'dtype': data.pop(-1),
                    'null':' '.join(data)
                    })
    except:
        print (f'error with loading file {filename}')
        return
    return table