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:
  1. Dim fs As Integer
  2.            
  3.             fs = FreeFile    ' Get unused filenumber.
  4.             Open strFile For Binary Access Write As #fs
  5.                                                                        
  6.             Put #fs, , lng_Data
  7.            
  8.             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