我有这个方法
TextReader tr = new StreamReader(@"\IPSM\DeviceConfig.EXM");
int NumOFLines = 6;
String[] ListLines = new string[NumOFLines];
for (int i = 1; i < NumOFLines; i++)
{
ListLines[i] = tr.ReadLine();
}
using (StreamWriter output = File.AppendText(@"\temp\exm.txt"))
{
output.Write(ListLines[5]);
}
tr.Close();
return;
读取它们附加到另一个文本文件的文本文件的第 5 行,输出为
Line1
Line2LINE5 //from the other text file
我想
Line1
Line2
LINE5 //from the other text file
如何让它输出到下一行我仅限于 Compact Framework