文件每行有3列,user_id, item_id, score用如下程序读入while(!infile.eof ()){ infile >> user_id >> item_id >> score;。。。}文件最后是空行时,实际上的最后一行被又处理了一遍。请问如何判断空行,或格式错误?