摘要: ifstream fin("example.txt", ios::binary);fin.seekg(0, ios::end); // 设置指针到文件流尾部streampos ps = fin.tellg(); // 指针距... 阅读全文
posted @ 2014-08-26 21:56 bgmind 阅读(1473) 评论(0) 推荐(0) 编辑
摘要: string bytesToHexString(const char* bytes, int len) { string result = ""; string temp = "0123456789ABCDEF"; int index = 0; for (int i = 0; i > 4) ... 阅读全文
posted @ 2014-08-26 21:29 bgmind 阅读(220) 评论(0) 推荐(0) 编辑