reads in a table in txt format