Skip to content

RefreshingScraps/File2ByteArray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File2ByteArray


将文件转换成字节集

请使用Visual Studio编译。

使用方法:在主程序里引用生成出来的"data.h",在函数里插入以下代码:

	int size = sizeof(binary_bin);
	ofstream output_file("文件路径\文件名", ios::binary);
	output_file.write(reinterpret_cast<const char *>(binary_bin), size);
	output_file.close();

即可生成源文件。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages