I am trying to store a file's data into a byte array and display it in a textbox.

I tried this:

VB Code:
  1. Option Explicit
  2. Private b() As Byte
  3. Private Sub Command1_Click()
  4. Open "c:\7za.exe" For Binary As #1
  5. Get #1, , b
  6. Text1.Text = b
  7. Close #1
  8. End Sub


when i click the button text1 becomes empty. Note that c:\7za.exe is a valid file.