ini_key_delete

Deletes the indicated key from the indicated section of the currently open .ini file, should the key exist.

Syntax:

ini_key_delete(section, key);


Argument Description
section The section to delete a key from.
key The key to delete.


Returns: N/A


Description

With this function you can remove the selected key (and its corresponding value) from an ini file.


Example:

ini_open('savedata.ini');
ini_write_real('save1','Score',score);
ini_key_delete('save1','Score');
ini_close();

This example will open 'savedata.ini' and write a value to 'save1' > 'Score'. It will then delete the 'Score' key and close the .ini file.


Back: Ini Files
Next: ini_section_delete
© Copyright YoYo Games Ltd. 2018 All Rights Reserved