Window form write in text file in c++/cli

I have made a video  for write in text file in C++/cli window Form Application.......

plzz. Download video From here...

Download Video

And Source Code.....

First include  a  library  on the top of the code..

using namespace System::IO;


private: System::Void button1_Click_1(System::Object^  sender, System::EventArgs^  e) {
StreamWriter^ wr=File::AppendText("t.txt");
wr->Write(this->richTextBox1->Text);
wr->Close();