can anybody help me on this. I have a text file with header and footer
I want to insert a row of data before the footer.
This is the sample of text file :
//Name Age Address Tel
//End Of File
I have try this code but it adds the line after the "//End Of File"
File.AppendAllText(appPath+@"\test\new.txt",label1.Text + Environment.NewLine);
Any suggestions........? Thanks advance..
This post has been edited by sanrooney: 15 November 2012 - 04:13 AM