读txt文件怎么判断一个文件是不是到了文件尾部

2025-04-08 06:47:29
推荐回答(1个)
回答1:

FILE *fin;
fin= _tfopen(str,_T("rt"));

while(!_eof(fin))
{
  // 文件处理  
}