ftell()

//ftell()原型。功能:用于得到文件位置指针当前位置相对于文件首的偏移字节数
_Check_return_ _CRTIMP long __cdecl ftell(_Inout_ FILE * _File);
fseek(PFile, 0, SEEK_END);//将文件指针从文件头移动到文件尾,则指针的长度就是文件的长度
int m_length = ftell(PFile);

 

posted on 2017-03-29 11:23  czhoud  阅读(132)  评论(0编辑  收藏  举报

导航