Questions
Q:

How to save text box content in a file

I am working on windows application (C#) and I want to save a text box content in a file (Save to file) when I click a button and file extension should be .txt and .html.