Asked By
elidal todd
20 points
N/A
Posted on - 02/01/2013
Hi guys.. I have a problem, i have a small visual basic project for which i want to read the binary files it created. Can anyone guide me how to view vba binary data??
Thanks…
How to read vba binary data in Visual Basic
 If your file is large you might want to use the read methodi.E file stream that file .
 buffer > full-size > read the entire file at once.
Code:Open fname-For- Binary- Access -Read -As #fnr
>buffer>space(LOF(fnr))
Get #fnr,, buffer
Close #fnr
Otherwise use this system:
 ReadAllBytes method
it returns the file contents as array.