Hi all,
I have a routine that reads a binary file into a string, this worked fine
all the time, untill recently. Now the reading of the file seems to reach
the end of file too soon. At the end the file is cut off.
I have no clue what is going wrong here.
Below is the code snippet which I use to read the data. I had to make alle
lines comment because our firewall is kinda paranoid.
Thanks for your time.
Romain.
'toRead = FreeFile()
'binFile = ""
'ChDir(PathToUse)
'Microsoft.VisualBasic.FileOpen(toRead, myFilename, OpenMode.Binary,
OpenAccess.ReadWrite, OpenShare.LockReadWrite)
'While Not (EOF(teLezen))
' aLine = Microsoft.VisualBasic.FileSystem.LineInput(teLezen )
' binFile = binFile + aLine & vbCr
'End While
'Microsoft.VisualBasic.FileClose(toRead)