I'd like to patch byte in external file. How can I do that?
The following function can be used to solve the problem of patching:
Public Function PatchByte(ByVal vstrFilePath As String, _
ByVal vlngOffset As Long, _
ByVal vbytValue As Byte)
Dim intFn As Integer
intFn = FreeFile
Open vstrFilePath For Binary Access Write As #intFn
Put #intFn, vlngOffset, vbytValue
Close intFn
End Function
| HOME TOPICS |
Copyright © 19981999 by Shamil Salakhetdinov.
|
| Last updated: June 7, 1999
Published also here at 4TOPS: Patch byte in external file |
|