Converting vb6 to .net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, how do i convert the following vb6 codes to .net? Nibble is variable
declared as Byte

InputString = ""
Open CurInputFileName For Binary Shared As #1
Do
Get #1, , Nibble
InputString = InputString & Chr$(Nibble)
Loop Until EOF(1)
Close #1
 
Hi

i know this "Open CurInputFileName For Binary Shared As #1" can be replace
by FileOpen(1, CurInputFileName, OpenMode.Binary, OpenAccess.Write)

and "Close #1" can be replaced by FileClose(1)

BUT...i do not know how to replaced the following,

Get #1, , Nibble
InputString = InputString & Chr$(Nibble)

Can u help me explain what does the above mean??
 
NotRegister,

I see now that you have placed this question as well in the newsgroup
Microsoft.public.dotnet.languages.vb.upgrade

The guy who answered you there in that newsgroup is as well sometimes giving
answers in this newsgroup.

:-))

Therefore you can answer him there, although I assume that most probably he
is about 11 GMT or before that time active in this newsgroup as well.


Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top