Home > Software engineering >  How to use vb 2 into open the file, rewrite the content???
How to use vb 2 into open the file, rewrite the content???

Time:10-07


It is this, is in 10 bytes to content, but delete need to rewrite the file, the file is not working, want to change in the 10-20 bytes before the content of the 98 57 84 12 these 14 21 to 25 to 55 44 10,,, how to change?

Dim bytTemp (9) As Byte

BytTemp (0)=98
BytTemp (1)=57
BytTemp (2)=84
BytTemp 14 (3)=
BytTemp=21 (4)
BytTemp (5)=25
BytTemp (6)=55
44 bytTemp (7)=
BytTemp=10 (8)
BytTemp (9)=12
"1. Exe" Open For Binary As # 1
Put # 1, 10, Temp
Close # 1

CodePudding user response:

If you mean the hexadecimal values, should be so
 bytTemp (0)=& amp; H98 

CodePudding user response:

reference 1st floor Tiger_Zhao response:
if you mean the hexadecimal values, should be so
 bytTemp (0)=& amp; H98 



Is the hexadecimal, can you point in detail, and, preferably, beginners can't understand,,

CodePudding user response:

In front of the 10 hexadecimal values all add & amp; H,

CodePudding user response:

The
reference 3 floor Tiger_Zhao response:
10 hexadecimal values in front of all add & amp; H,

Dizzy, the last time to remind the lz, he said that is written,
  • Related