Hello all,
I try to read a binary file with this code:
Private Sub CommandButton1_Click()
Dim intFileNum%, byteTemp As Byte, intCellRow
Dim arg As String
intFileNum = FreeFile
intCellRow = 0
Open "C:\test" For Binary Access Read As intFileNum
Do While Not EOF(intFileNum)
intCellRow = intCellRow + 1
Get intFileNum, , byteTemp
Cells(intCellRow, 1) = byteTemp
Loop
Close intFileNum
End Sub
But how could I modify the code to read first 8 bytes and after that 4 bytes ?
Regards
Per
I try to read a binary file with this code:
Private Sub CommandButton1_Click()
Dim intFileNum%, byteTemp As Byte, intCellRow
Dim arg As String
intFileNum = FreeFile
intCellRow = 0
Open "C:\test" For Binary Access Read As intFileNum
Do While Not EOF(intFileNum)
intCellRow = intCellRow + 1
Get intFileNum, , byteTemp
Cells(intCellRow, 1) = byteTemp
Loop
Close intFileNum
End Sub
But how could I modify the code to read first 8 bytes and after that 4 bytes ?
Regards
Per