Writing to config file
Posted: Mon Mar 06, 2006 9:28 am
This is the piece of code I had written to write to the config file
wxFileInputStream NamesStream("config.txt");
wxFileConfig *ConfigNames = new wxFileConfig(NamesStream);
bool b = ConfigNames->Write("ramu","[email protected]");
The return value is true but it doesn't write anything to the file.
I don't have any problem reading from the config file. Can somebody tell me whats the problem with Writing to config file.
wxFileInputStream NamesStream("config.txt");
wxFileConfig *ConfigNames = new wxFileConfig(NamesStream);
bool b = ConfigNames->Write("ramu","[email protected]");
The return value is true but it doesn't write anything to the file.
I don't have any problem reading from the config file. Can somebody tell me whats the problem with Writing to config file.