def count_records(filename, outfile=sys.stdout):
 from .biffh import biff_count_records
 bk = Book()
 bk.biff2_8_load(filename=filename, logfile=outfile)
 biff_count_records(bk.mem, bk.base, bk.stream_len, outfile)

def count_records ( filename , outfile = sys . stdout ) : from . biffh import biff_count_records bk = Book ( ) bk . biff2_8_load ( filename = filename , logfile = outfile ) biff_count_records ( bk . mem , bk . base , bk . stream_len , outfile )
for debugging and analysis: summarise the files biff records .