IDL Users library readcol routine (library must be in IDL_PATH!)
each column is read into an array variable
readcol,'filename',c1,c2,c3,c4,c5,c6[,format=('fffff') (variable names for columsn can be anything you want,
formats are fda for float (default), integer, character)
IDL Users library mrdfits routine (library must be in IDL_PATH!)
var=mrdfits('filename'[,ext,head=head]) reads data from specified extension into var
table data is read into a structure variable, access elements using e.g. var.colname