如题!
解决方案 »
- 如何使用C#实现open VPN客户端接入?江湖救急!
- 无法从“ref int”转换为“ref object”
- 对DATAGRIDVIEW重写问题
- 如何在C#使RichTextBox的打印格式与文本框内的原始格式一致
- c#能否实现自动校正分辨率 这个功能?
- datagrid 加checkbox的问题;he datagrid中 加textbox列的的问题;
- 在线等,GDI+技术问题,图片的RotateFlip属性只有90度,180度,270度的旅转属性,如何旅转任意角度?
- 初学者提问:关于交叉表(水晶报表)
- 制作安装程序后,为什么在别人的机子上不能安装
- 希望大家能我一把 谢谢
- 虚心请教,Winform的列表显示问题。
- [10分] 无法读取文本文件内的中文(WinForm)
string str;
string result = "";
int count= 0;
int index = 3;//指定行
while ((str = sr.ReadLine()) != null)
{
if (count>= (index-1))
{
result += str;
}
count++;
}
MessageBox.Show(result.ToString());
{
string[] all = File.ReadAllLines("D:\\a.txt");
return all[index];
}
public string getindexstr(int index)
{
string temp; string[] all = File.ReadAllLines("D:\\a.txt"); for (int i = index; i < all.Length; i++)
{
temp += all[i];
}
return temp;
}