takes in a file, puts into array(indexed) and outputs as html table