a set of routines to be able to read TDT files