import csv


def write_table_to_csv_file(file_name, lowfi_table):
    """Write the data from a LowFiTable to a .csv file."""
    try:
        with open(file_name, mode='w') as fp:
            csv_writer = csv.writer(fp, dialect=csv.excel, lineterminator='\n')
            csv_writer.writerows(lowfi_table.get_headings_and_data_as_list())
        return True
    except:
        return False