Home » U++ Library support » U++ Core » odd behavior with SaveFile
odd behavior with SaveFile [message #59674] |
Wed, 01 March 2023 11:34  |
Mountacir
Messages: 49 Registered: November 2021
|
Member |
|
|
Hi,
I'm having an issue with saving .cfg file that has Windows path in it.
If i try to save it in the same folder as the .exe with SaveFile("config.cfg", cfg) it saves it in a random "This PC" folder!
FileSelNative fs;
fs.Type("jpg & png Images","*.jpg;*.jpeg;*.png;*.png");
if(!fs.ExecuteOpen()) return;
String cfg;
cfg << "PATH=" << ~fs << "\n";
//This works
if(!SaveFile("C:\\Users\\ATT\\Documents\\upp_16660\\out\\MyApps\\CLANGx64.Debug.Debug_Full.Gui\\config1.cfg", cfg))
LOG("Error saving configuration!");
//But this will save it in my Downloads or Pictures or Desktop.. folder
if(!SaveFile("config2.cfg", cfg))
LOG("Error saving configuration!");
|
|
|
Goto Forum:
Current Time: Tue Apr 29 19:41:28 CEST 2025
Total time taken to generate the page: 0.00988 seconds
|