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
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