タイトル : Re^5: 2バイトの一文字読込 投稿日 : 2006/11/26(Sun) 19:38 投稿者 : 花ちゃん
ここのサンプル等も参考にしてチャンと試して見て下さい。 Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim sr As New System.IO.StreamReader("c:\Test.txt", System.Text.Encoding.Default) 'Dim sr As StreamReader = New StreamReader("c:\Test.txt") Do While sr.Peek() >= 0 Console.WriteLine(Convert.ToChar(sr.Read())) Loop sr.Close() End Sub ※ c:\Test.txt ファイルは、メモ帳で作成して保存した物を使用して下さい。 |