K
kerwin
Unregistered / Unconfirmed
GUEST, unregistred user!
Dim tmp1 As Byte
Dim tmp2 As Byte
Dim rddata As String
Open "C:/wz.txt" For Binary As #1
Do While Not EOF(1) ' 检查文件尾。
Get #1, , tmp1
Get #1, , tmp2
rddata = rddata + ChrW(tmp2 * CLng(256) + tmp1)
Loop
Close #1
'姓名
nametmp = Mid(rddata, 1, 15)
'性别
sextmp = Mid(rddata, 16, 1)
这段程序就是将GB 13000的UCS-2进行存储的的文本转换成汉字!
哪位大哥能帮帮小弟,小弟先谢了!!!
Dim tmp2 As Byte
Dim rddata As String
Open "C:/wz.txt" For Binary As #1
Do While Not EOF(1) ' 检查文件尾。
Get #1, , tmp1
Get #1, , tmp2
rddata = rddata + ChrW(tmp2 * CLng(256) + tmp1)
Loop
Close #1
'姓名
nametmp = Mid(rddata, 1, 15)
'性别
sextmp = Mid(rddata, 16, 1)
这段程序就是将GB 13000的UCS-2进行存储的的文本转换成汉字!
哪位大哥能帮帮小弟,小弟先谢了!!!