易 易名烦 Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-07 #4 FileStream fs = new FileStream ( "C://fhpobh.txt" , FileMode.Open , FileAccess.Read ) ; StreamReader m_streamReader = new StreamReader ( fs ) ; string strLine = m_streamReader.ReadLine();
FileStream fs = new FileStream ( "C://fhpobh.txt" , FileMode.Open , FileAccess.Read ) ; StreamReader m_streamReader = new StreamReader ( fs ) ; string strLine = m_streamReader.ReadLine();
完 完颜康 Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-10 #5 既然是流,我觉得应该是编码模式的问题,用 Decoder 对象将原始字节转换成你要的字符串
K kals Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-12 #7 Try this: StreamReader m_streamReader =new StreamReader(fs,System.Text.Encoding.GetEncoding("gb2312"));
Try this: StreamReader m_streamReader =new StreamReader(fs,System.Text.Encoding.GetEncoding("gb2312"));