S
SamSam
Guest
Dear GMC, could you help me with this issue, please ?
I NEEDED
• An UTF-8 .ini file to save french strings
• A way for the user to choose which .ini to load into the software
I DID
• Create the UTF-8 .ini file
• Include it into the project (named "config_test.ini")
• When save button is clicked it does :
IT HAPPENED
• The build creates the .ini file into the folder
• When I press the save button it saves the value (I am able to load it back)
• But config_test.ini is still empty (and when I delete it, the software can still load the previously saved value)
I TRIED
• ini_open("Settings/config_test.ini");
• ini_open("config_test.ini");
• Preparing the section and the key with a random value in the .ini file before the build
• Leaving the .ini file perfectly empty before the build
• Coding "test" as a value to write
• Coding the value to write as a variable set in a create event
• Simplifying the problem by making a new project with only this save/load feature : exact same result
VERSIONS
• IDE v2.2.1.375
• Execution environment v2.2.1.291
I would be very grateful for your help !
I NEEDED
• An UTF-8 .ini file to save french strings
• A way for the user to choose which .ini to load into the software
I DID
• Create the UTF-8 .ini file
• Include it into the project (named "config_test.ini")
• When save button is clicked it does :
Code:
ini_open("config_test.ini");
ini_write_string("Section", "Key", "test");
ini_close();
IT HAPPENED
• The build creates the .ini file into the folder
• When I press the save button it saves the value (I am able to load it back)
• But config_test.ini is still empty (and when I delete it, the software can still load the previously saved value)
I TRIED
• ini_open("Settings/config_test.ini");
• ini_open("config_test.ini");
• Preparing the section and the key with a random value in the .ini file before the build
• Leaving the .ini file perfectly empty before the build
• Coding "test" as a value to write
• Coding the value to write as a variable set in a create event
• Simplifying the problem by making a new project with only this save/load feature : exact same result
VERSIONS
• IDE v2.2.1.375
• Execution environment v2.2.1.291
I would be very grateful for your help !
Last edited by a moderator: