Code: Select all
ListBox1->Items->GetText();
ListBox1->Items->SaveToFile(Edit1->Text + "\\gen_avs.bat");
For example let's say that I have a wxlistbox that contains the following lines
I would like to be able to save the contents of this listbox to a text file named gen_avs.bat that contains and looks identical to the listbox.some text
some more text
and some more text
I am now using codeblocks with wxwidgets in ubuntu linux.some text
some more text
and some more text
How can I accomplish the same thing as I can with borland using wxWidgets wxListBox?
Many thanks for your help.