摘要: 下例使用这些函数来获得一个二进制文件的大小:// obtaining file size#include #include const char * filename = "example.txt";int main () {long l,m;ifstream file (filename,ios::in|ios::binary);l = file.tellg();file.seekg (0, ios::end);m = file.tellg();file.close();cout << "size of " << filenam 阅读全文
posted @ 2013-12-03 17:29 酷熊 阅读(185) 评论(0) 推荐(0) 编辑