Sign in to follow this  
Followers 0
Hypertrophy

iniwriting to multiple sections with a limit persection

4 posts in this topic

how do i write to an ini file in [section1] and when there are 1000 keys in that section write to the next section [section2]?

Help me grasp the concept please. God Bless.

Share this post


Link to post
Share on other sites



IniReadSection(). Then find the size of the array.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

Just count the number of IniWrite you make into a particular section and when you reach 1000, change the section name you feed into IniWrite.

Do note that there is a file size limit with .ini in AutoIt. 33kb, I think. I think you need the Ex version for larger files. Not that familiar since I've never had the need to use large .ini files.

That is if you're doing the writing. If you're reading an .ini file, you use IniReadSection. The number of keys in the section is in the [0][0] element of the returned array from IniReadSection.

Share this post


Link to post
Share on other sites

IniReadSection(). Then find the size of the array.

Thanks. that was too simple. i feel stupid now. :D

Just count the number of IniWrite you make into a particular section and when you reach 1000, change the section name you feed into IniWrite.

Do note that there is a file size limit with .ini in AutoIt. 33kb, I think. I think you need the Ex version for larger files. Not that familiar since I've never had the need to use large .ini files.

That is if you're doing the writing. If you're reading an .ini file, you use IniReadSection. The number of keys in the section is in the [0][0] element of the returned array from IniReadSection.

hmmm. i just a second ago read 10 sections containing 1000 keys in each section.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0