web网站开发视频seo广州工作好吗
C++:通过ifstream读取二进制文件内容_c++ ifstream 二进制读取-CSDN博客
介绍了读取二进制文件的方法。
本文介绍一下写入二进制数据到文件的方法:
1.通过write
#include <fstream>
#include <string>
using namespace std; int main()
{int data = 0x01020304;ofstream wf("./data.bin", ios::binary);if(wf.is_open()){