64,683
社区成员
发帖
与我相关
我的任务
分享
char buf[] = { 0x31, 0x1A, 0x32, 0x1A, 0x0};
ofstream out("d:/test.txt", ios::out);
out.write(buf, _countof(buf));
out.close();
ifstream in("d:/test.txt", ios::binary);
in.seekg(0, ios::end);
int filesize = in.tellg();
in.close();