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