[INI tools] INI2Array Array2INI

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
Xeo786
Posts: 760
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

[INI tools] INI2Array Array2INI

08 Jun 2021, 04:17

INI tools uses Native AHK INI read and write commands,

Examples

Code: Select all

;Making 2d Array from INI and Saving that 2d Array as INI to new location
;The Benefit is it will clean the INI, it will put every stuff in ascending order and have removed all the empty lines and Gaps
;The Disadvantage is you get all the comments removed
Array2INI(INI2Array(iniFile), newLocationINI)

;This simply doing the same to existing INI
CleanINI(iniFile) 

;Simply returning Array of All the Sections
Sections := GetINISections(iniFile)

;Thats how you get every key, Section and Values from into 1D array
array := INI2Array(iniFile)	
Lib
Spoiler
Last edited by Xeo786 on 11 Jun 2021, 04:31, edited 1 time in total.
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: [INI tools] INI2Array Array2INI

08 Jun 2021, 14:51

@Xeo786, looks useful, thanks for sharing it.
Regards,
burque505

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: docterry, niCode and 161 guests