Code: Select all
wxFileConfig *File;
.....
bool result;
File->SetPath( "/Q/bjt/Textbook" );
result = File->DeleteGroup( "Textbook" );
File->Flush();
Code: Select all
[Q]
[Q/bjt]
[Q/bjt/Textbook]
[Q/bjt/Textbook/spec_h_fe]
U=10
V=88.00000000000000
[Q/bjt/Textbook/spec_h_fe_hf]
U=10
V=80.00000000000000
[Q/bjt/Textbook1]
[Q/bjt/Textbook1/spec_h_fe]
U=10
V=90.00000000000000
[Q/bjt/Textbook1/spec_h_fe_hf]
U=10
V=70.00000000000000
What has gone wrong here? How is a group removed from an ini file such as this?