dim buff() as long
dim filename as string
filename="你的文件路径"
dim i as long
i=filelen(filename)
redim buff(i-1)
open filename for binary as #1
get #1,,buff
close #1
'
dim s as string,temps as string
for i=0 to ubound(buff)
temps="00"+hex(buff(i))
temps=right(temps,2)
s=s+temps
next