string fileName = "E:/aa.txt";
int n = -1;
StringBuilder sb = new StringBuilder();
StreamReader sr = new StreamReader(fileName, Encoding.ASCII);
int nLine = 0;
while (sr.Peek() > -1)
{
nLine++;
String s = sr.ReadLine();
if (nLine != n && nLine!=3)
sb.Append(s + "/r/n");
}
sr.Close();
StreamWriter sw = new StreamWriter(fileName, false, Encoding.ASCII);
sw.Write(sb.ToString());
sw.Close();