def _pprint_file(fobject, headers, tablefmt, sep, floatfmt, file, colalign):
    rows = fobject.readlines()
    table = [re.split(sep, r.rstrip()) for r in rows if r.strip()]
    print(tabulate(table, headers, tablefmt, floatfmt=floatfmt,
          colalign=colalign), file=file)