Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 ?
Posted
Updated 18-Apr-14 21:48pm
v2
Comments
karthik Udhayakumar 19-Apr-14 3:45am    
pls use the improve question option and explain clearly the requirement to guide you further
Richard MacCutchan 19-Apr-14 4:14am    
If you are reading it then you are already reading it into memory.

1 solution

Assuming this is .NET, then this should do it:
VB
Dim data As Byte() = File.ReadAllBytes("D:\Temp\myData.bin")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900