投稿日 | : 2002/11/21(Thu) 21:50 |
投稿者 | : Starfish |
Eメール | : |
URL | : |
タイトル | : Re: 漢字の"系"を読み書きしたいのです。 |
たとえば、こんなかんじでできます。
Dim temp As String
Dim binary() As Byte , readbinary() As Byte
Dim lngFileLenB As Long
'★「系」をバイナリ型配列に挿入
binary = "系"
'★バイナリデータを「a.txt」に書き込み
Open App.Path & "\a.txt" For Binary As #1
Put #1, , binary
Close #1
'★バイナリデータの読み込み
Open App.Path & "\a.txt" For Binary Access Read As #1
lngFileLenB = FileLen(App.Path & "\a.txt")
readbinary = InputB(lngFileLenB , #1)
Close #1
'★「系」の復元
temp = readbinary