我需要读txt文档的固定一行,比如读取第55行;我编写的代码如下:
StreamReader myReaderEC2m08 = new StreamReader(@mypathEC2m08, Encoding.GetEncoding("GB2312"));
          
          while ((mylineEC2m08 = myReaderEC2m08.ReadLine()) != null)
          {
              j = j + 1;
                     if (j== 55)
              {
                  MessageBox.Show(mylineEC2m08);
              }
         }