﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
518	IniRead() optionally create default entry if not exists	matin@…		"For scripts that use INI files, the option to create default INI values is desired. The current IniRead() function allows passing of a default value if specified section/key pair is absent. The requested enhancement would optionally create the specified section/key (and INI file, if necessary) with the default value if it does not exist.

This allows new script versions to add new INI parameters that will be written to an existing file, and allows automatic re-creation of a default INI file if no INI file is present. (Deleting an existing INI file would result in creation of a default INI.)

This feature could be implemented in one of two ways: 

1) Adding an additional parameter to the AutoIt core after the ""default"" value that indicates whether the default value should be written to the INI file if it does not exist:

   IniRead ( ""filename"", ""section"", ""key"", ""default"",             ""CREATE_OPTION"" )
             ; CREATE_OPTION = TRUE/1 to write section/key/default               to ini filename if it does not exist


2) Adding an _IniReadDefault() or similarly-named function to Misc.udf (or other) that writes the section/key/default to the ini filename if it does not exist.

If the feature is viable, and option 2 is preferred, a UDF function will be submitted. (Developer recommendations for the function name would be taken.)"	Feature Request	closed		AutoIt		None	Rejected	ini iniread udf	
