VB初心者質問スレPart3
■ このスレッドは過去ログ倉庫に格納されています
0706デフォルトの名無しさん
NGNGDim abytBuff() as byte
Dim hFile&
Dim strText$
hFile = FreeFile()
Open "hoge.txt" as Binary for hFile
Redim abytBuff( LOF(hFile) - 1 ) 'サイズが0だとエラーになるよ
Get hFile,,abytBuff()
Close hFile
strText = StrConv(abytBuff(),vbUnicode)
こんな感じかな。
■ このスレッドは過去ログ倉庫に格納されています