有关读文件的问题 我读文件的时候,怎样判断它结束呢,难道非要知道文件的大小才可以嘛!c语言中有一个while(fgetc(..)!=eof!){读文件}那vc中怎么实现呢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CFile::Read virtual UINT Read( void* lpBuf, UINT nCount );throw( CFileException );Return ValueThe number of bytes transferred to the buffer. Note that for all CFile classes, the return value may be less than nCount if the end of file was reached. 如果用ifstream in;判断是否结束用in.eof(); bSuccess = ReadFile();再正好读到文件末尾时,返回值为TRUE, 但是读取的字节数为0,比如: if (bSuccess && 0 == dwReaded) { //// 读取完了场合 break; } HOOK SEND或RECV函数后,如何获得HOOK到的数据包是要发往哪个目标IP? vc中如何编程实现隐藏窗口? 64位16进制问题 请问unix/linux和windows之间的远程调用方法 讨论:继承和对象成员的区别。 关于msado.dll的问题 100分!VC中利用ODBC保存数据为Excel的问题!!??? 请问BeginPaint和EndPaint怎么用? 我的多线程程序不能运行,请高手帮我看看! C#出来了,Delphi和CBuilder怎么办? dll的参数传递 你是怎么过的?CSDN无高人?:(
virtual UINT Read( void* lpBuf, UINT nCount );
throw( CFileException );Return ValueThe number of bytes transferred to the buffer. Note that for all CFile classes, the return value may be less than nCount if the end of file was reached.
ifstream in;
判断是否结束用
in.eof();
{ //// 读取完了场合
break;
}