This would be a project to read a binary file such dat files or exe files or even dlls but i found this extremely slow doing it. A 100kb file was taking ~1 minute, 1 mb file..well i gave up and closed the process.
I would like to see this working faster if there is a way to do it..

VB Code:
  1. Option Explicit
  2.  
  3. Private Sub Command1_Click()
  4. Dim arItems() As Byte
  5. Dim sText$
  6. Dim sTemp$
  7. Dim i As Double
  8.  
  9.     Open "tmp001.dat" For Binary As #1
  10.       ReDim arItems(LOF(1))
  11.       Get #1, , arItems
  12.     Close #1
  13.    
  14.     For i = LBound(arItems) To UBound(arItems) - 1
  15.         sText = sText & Hex(arItems(i))
  16.     Next i
  17.    
  18.     Open "hex_output.txt" For Append As #2
  19.         For i = 1 To Len(sText) Step 32
  20.             sTemp = Mid(sText, i, 32)
  21.             Print #2, sTemp
  22.         Next i
  23.     Close #2
  24.  
  25. End Sub