获得文件长度

ifstream in("STLExtension.h",ios::ate); if (in.is_open()) { cout << "file length is " << in.tellg() << endl; } 转载于:https://www.cnblogs.com/fanzi2009/archive/2009/10/23/1588677.htmlhtml
相关文章
相关标签/搜索