read file by line,and printout array