我如何...在内存中写入二进制数据 [英] How do I...write binary data inside Memory
本文介绍了我如何...在内存中写入二进制数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我正在以二进制模式读取文件,我需要将其直接写入内存,怎么可能?
是否有任何API函数或其他方法?
解决方案
假设这是.NET,那么应该这样做:
< span class =code-keyword> Dim data As 字节()=文件。 ReadAllBytes( D:\Temp \ myData.bin)
hi
I am reading a file in binary mode and i need to write it directly to memory , how is it possible?
is there any API function for that or another method ?
解决方案
Assuming this is .NET, then this should do it:
Dim data As Byte() = File.ReadAllBytes("D:\Temp\myData.bin")
这篇关于我如何...在内存中写入二进制数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文