VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



How to write arrays to a file quickly

by Ales Zigon (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Fri 26th October 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

How to write arrays to a file quickly

Rate How to write arrays to a file quickly




Dim MyFile As Integer
MyFile=FreeFile

Open "C:\SavedArray.xxx" For Binary As MyFile
    Put #MyFile, , Array
Close MyFile

End Sub

'Array is the actuel array you want to store in the file. For retrievig it just change "Put" command to "Get".  And if the Array is numerical (integer), when someone is trying to read the file with notepad or somethig, he/she will see just a bunch of wierd characters! (usefull for some sort of decryption!).That All.

Regards!
Ales Zigon

Download this snippet    Add to My Saved Code

How to write arrays to a file quickly Comments

No comments have been posted about How to write arrays to a file quickly. Why not be the first to post a comment about How to write arrays to a file quickly.

Post your comment

Subject:
Message:
0/1000 characters