Help User Input

I'm new to C++ and I mainly use VB. I need help capturing user input from a textbox. For example, I open up my application and see a blank textbox. I type in "Hello World!" and when I close the textbox, I want it to show "Hello World!" when I reopen my application.
I found what I wanted by using the search button.
 
richTextBox1->LoadFile("c:\\example.txt", RichTextBoxStreamType::PlainText);

That code captures the input for example.txt, but it doesn't capture the user input from the textbox and save it into example.txt.
How can I capture what's in the textbox and replace everything in example.txt?
Last edited on
richTextBox1->SaveFile("c:\\example.txt", RichTextBoxStreamType::PlainText);
thank you that worked
Topic archived. No new replies allowed.