forms application standard i/o

I am writing a program and when a certain button is pushed i want it to get the text from a text box and create a txt file and put that string in it. i tried using fstream but it wont work with a String^ type. so i tried converting the string to std::string type. that failed miserably for me. any help on this? how do i do this? i don't care if i convert or if there is a way to use the string^ type. i just need a way to get it done.

thanks

1
2
3
4
5
6
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) 
{


			 
}
Last edited on
Topic archived. No new replies allowed.