标题:[求助]流输出问题!!!急
取消只看楼主
cql
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2005-4-17
 问题点数:0 回复次数:0 
[求助]流输出问题!!!急

读取文件内容的时候可以读取英文和数字,但读取中文的时候出现乱码。请问应该怎么办? 小弟先谢啦! 代码如下:

Private Sub Read_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Read.Click Dim FS As FileStream Dim str As String Dim cl As String = Chr(13) & Chr(10) FS = New FileStream("cql.txt", FileMode.OpenOrCreate, FileAccess.Read) Dim tr As New StreamReader(FS) tr.BaseStream.Seek(0, SeekOrigin.Begin) While tr.Peek() > -1 str &= tr.ReadLine & cl End While tr.Close() TextBox1.Text = str End Sub

搜索更多相关主题的帖子: 输出 
2005-05-13 21:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-18130-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012374 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved