Results 1 to 4 of 4

Thread: read Binary files *resolved*

Threaded View

  1. #1

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    read Binary files *resolved*

    It seems like every example i look at is the same..
    but i cannot get any output.


    How do i open a binary file and look at it??




    VB Code:
    1. Private Sub Command2_Click()
    2.  
    3.  
    4. Dim Path As String
    5.     Path = "C:\Documents and Settings\All Users\Desktop\test.exe"
    6.  
    7. Dim b() As Byte
    8.  
    9. ReDim b(FileLen(Path))
    10. Open Path For Binary Access Read As #1
    11. Get #1, , b()
    12. Close #1
    13.  
    14. Text1 = b()
    15.  
    16.  
    17.  
    18. End Sub


    Seahag
    Last edited by SeaHag; Dec 4th, 2002 at 04:58 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width