I have managed to create a file (Sample.txt).
So what I need now is to put the contents from array (ReadLines[]) to this file, line by line and the file name should be what is written in textBox3.
array<System::String^>^ ReadLines = gcnew array<System::String^> ( textBox2->Lines->Length );
ReadLines = textBox2->Lines;
System::String ^ Name1 = textBox3->Text;
System::String ^ Name2 = ReadLines[0];
StreamWriter File = gcnew FileStream("C:\\Sample.txt", FileMode::Append);