VB Code:
For intSeekPos = 1 To lngFileSize
'The first time through, lngSeekPos is 1......
Get #intFileHandle, lngSeekPos, bytBuffer(lngSeekPos - 1)
'The first time through, you try to use byt(Buffer( [lngSeekPos -1, which is 0]) ... BUT.....
'The array is defined as bytBuffer([B]1[/B] To lngFileSize)
'See the problem???
'Either the for is 0 to lngFileSize - 1 OR take the -1 off of the Get statement.
'BTW: why are you reading the file one byte at time, why not read the whole thing in at once, or in larger chunks?
Next intSeekPos