I am converting a project from vb6 to vb.net.
I converted most of the part but stuck on a line.
VB6 code :
Do While Not EOF(FileO)
Get #FileO, , ByteBuffer
If Loc(FileO) < LOF(FileO) Then
ByteCounter = ByteCounter + 64
End If
Loop
VB.NET Code :
Do While Not EOF(FileO)
Get(#FileO, , ByteBuffer) '----------> PROBLEM HERE
If Loc(FileO) < LOF(FileO) Then
ByteCounter = ByteCounter + 64
End If
Loop
I am getting problem over the get statement.
Get(#FileO, , ByteBuffer)
Error I am facing is :
Error BC30829 'Get' statements are no longer supported. File I/O functionality is available in the 'Microsoft.VisualBasic' namespace.
What is replacement for GET statement?? How to apply?
Thanx :)