如何在VB中把二进制数据写入文件中,而不使用API呢?
用Open filename For Binary Access Write As #1
打开
用 open filename for Output As #1
write #1,"hello"
上面这种方式仍然不是以二进制方式写入的,直接可以通过记事本可以看到hello的.
用Open filename For Binary Access Write As #1
打开
用 open filename for Output As #1
write #1,"hello"
上面这种方式仍然不是以二进制方式写入的,直接可以通过记事本可以看到hello的.
看得到hello不代表不是二进制文件
因为想写一些数据而不需要用记事本来直接看到
-------------------------------------------------------------------------------
--------------------想看乱码应该试汉字字符串,HELLO用的字母是标准的ASCII码,
怎么可能变成乱码呢?