Visual Basic 2008 Binary

October 2, 2009 at 14:08:42
Specs: Windows XP/Windows Vista/Windows 7
How can I read binary from a file in Visual Basic 2008. I have one method but it takes way to long. I only need like a small proportion of the files binary. I'm making an antivirus, so can anyone help me?

(Get binary of a file in like .7 of a second, thankyou!)

See More: Visual Basic 2008 Binary

Report •

October 11, 2009 at 23:21:36
i would assume you have the obvious:

open xx for binary access read as #1

then use input$ (x$=input$(nn,#1) and
use file length modulo to test for end of file
(based on "nn" which is the no. of bytes
the program reads at a time.)

if this is too slow, maybe your code is not optimized,
or you need to use a .com or .exe program to
maximize throughput.

Report •

October 12, 2009 at 09:54:56
open xx for binary access read as #1
That doesn't work in the VB.NET series.

Report •

Related Solutions

Ask Question