How to write a file in VB6.0 and read it in VB.net
Hello.
I need to write a list of Longs to a file in an application written in VB6.0, and then read the same file through an application written in VB.net.
Writing the file in VB6.0 I can do as follows:
VB Code:
Dim fs As Integer
fs = FreeFile ' Get unused filenumber.
Open strFile For Binary Access Write As #fs
Put #fs, , lng_Data
Close #fs
..where lng_Data is an array of longs
But how do I read this array back into memory in VB.net?
Using a binary streamreader.. I am only allowed to read byte-arrays.
In VB.net, I could serialize/deserialize the array, but that is not compatible with VB6.0.
Ideas?
best reg.
BIW