read file to table