How to read vba binary data in Visual Basic

Asked By 20 points N/A Posted on -
qa-featured

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…

SHARE
Answered By 0 points N/A #168728

How to read vba binary data in Visual Basic

qa-featured

 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.

Related Questions