VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

File Loading Methods Compared

Luis Cantero  (14 Submissions)   Files/File Controls/Input/Output   Visual Basic 5.0   Beginner   Wed 3rd February 2021

This example compares four file loading methods, (the normal VB Open method, the ReadFile API, and other methods involving MemCopy API), you will also see the difference between returning a String or a Byte Array. I did this example because I keep seeing people using the normal VB Open command to load files, even for Hex editors, as you will see there's a huge difference between using it and using an API. The test in the screen shot was made with a 1GHZ P3 Notebook with 384MB RAM (as a compiled .EXE), please note that times may vary from test to test depending on what your computer's doing, etc. Comments and/or improvements as well as votes are welcome.

Rate File Loading Methods Compared (10(10 Vote))
File Loading Methods Compared.bas

File Loading Methods Compared Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters