You need to get the name and location of the config file.
Open that file.
Read the contents of the file into a string.
Then set the text of the richrtextbox to be that string.
Thank you for answering.
I tried anything. Can't make it to work :\ I don't know what I did wrong.
Can you identify the name and location of the *.cfg file?
scripter->Lines =IO::File::ReadAllLines(listBox1->SelectedItem->ToString()); this worked for me.
I'm sorry to comment again, but I have another problem with saving the opened file.
It is possible to save richtextbox file without dialogs? Filename and filepath are the same opened in richtextbox.
std::string path ="";
scripter->SaveFile = IO::File::WriteAllLines();