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 :
//Student Information
//Name Age Address Tel
//============================================================
Adam,30,Malaysia,0111111111
Shah,24,Malaysia,0122334455
//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

New Topic/Question
Reply



MultiQuote





|