int i = streamReader.Read(rcd, 0, 1000);
if(i==0)
{
 MessageBox.Show("数据流已经读完");
}
else
{
 s = rcd.ToString();
}
出现你所说的情况应该是因为rcd并没有从streamReader中读到字符.

解决方案 »

  1.   

    tryString s = new String(rcd);
      

  2.   

    tryString s = new String(rcd);
      

  3.   

    string s;
    s=streamReader.ReadLine();
    char[] rcd = new char[1000];
    int i=streamReader.Read( rcd,0,1000);
    s=rcd.ToString();   //结果是s="System.Char[]"不知是什么原因,请各位相助
      

  4.   

    一般来说,如果没有特别重载的话,ToString()返回该变量所属的类型名字试试string s;
    s=streamReader.ReadLine();
    char[] rcd = new char[1000];
    int i=streamReader.Read( rcd,0,1000);
    s=new String(rcd);