Update text in notepad

Hi,
Can any one help how to update the text in notepad in C#?

Thanks in advance.