VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



File Loading Methods Compared

by Luis Cantero (14 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

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

Upload

Download this snippet    Add to My Saved Code

File Loading Methods Compared Comments

No comments have been posted about File Loading Methods Compared. Why not be the first to post a comment about File Loading Methods Compared.

Post your comment

Subject:
Message:
0/1000 characters