How can I append text to an existing textfile before the last line using C#
Like say
If I have file called text.txt
I am a text
I love to code
Will like to put
C# is good
before
l love to code
so the final text will be
I am a text
C# is good before
I love to code
Any help will do
Thanks
Hi :)
Have you checked out MSDN on
How to: wite ext to a file?
You could use the append feature to append to the end of a text file if one already exists.
I suggest searching MSDN for your answer.
The experts on this site are more than happy to help you with your problems but you are going to have to attempt the program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
We'll help you through this when you have a more specific question.
-Frinny