}
File.Delete(@".\学生管理系统文件.txt");
string temp = "";
for (int i = 0; i < lines.Length; i++)
{
string str = lines[i];
arr = str.Split('\t');
if (i == n)
{
for (int j = 0; j < 11; j++)
{
if (j == m)
{
arr[j] = xg;//修改
}
temp += arr[j] + "\t";
}
lines[i] = temp;
}
lines[i] += "\r\n";//换行
}
string stre = "";
for (int i = 0; i < lines.Length; i++)
{
stre += lines[i];
}
File.WriteAllText(@".\学生管理系统文件.txt", stre, Encoding.Default);
}
}
}