VB.NET 如何打开HEX文件?
vb.net吧
全部回复
仅看楼主
level 1
蓝梦妖蝶 楼主
为什么我用
Dim lines As Byte()
lines = File.ReadAllBytes(OpenFileDialog1.FileName)
读出了hex值和用烧写器打开的HEX值不一样?
貌似只是把TXT转成了HEX而已。并不是HEX文件
2018年08月22日 10点08分 1
level 1
蓝梦妖蝶 楼主
使用BinaryReader也是同样结果。看来是要转换一下,才能变为16进制了。
Dim FS As New System.IO.FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite)
Dim Br As New System.IO.BinaryReader(FS, System.Text.Encoding.Unicode)
2018年08月23日 03点08分 2
1