ini file - windows limitation?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
noir
Posts: 113
Joined: 26 Dec 2008 00:38

ini file - windows limitation?

Post by noir »

Hello, i was wondering why you are using ini file's to store settings instead of XML or a db of some kind (also doesn't ini files have a 64kb limitation?).

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: ini file - windows limitation?

Post by j_c_hallgren »

My presumption is they are nice and easy to work with, easily edited by anyone for tweaking and don't have a lot of extra overhead that XML does, for example...I like the fact that I can view it without any need for fancy editor.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

noir
Posts: 113
Joined: 26 Dec 2008 00:38

Re: ini file - windows limitation?

Post by noir »

well its not really the issue of easy editing, its the the Windows API limitation to 64kb, maybe with some tweaks you can make it larger, with history etc stored im thinking you could push to this limit pretty easy then could possibly break the program saving options since more data cant be stored anymore.

as for xml you can use any old editor to edit it, db can be a little harder but can be over more efficient with larger data.

admin
Site Admin
Posts: 66310
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: ini file - windows limitation?

Post by admin »

Where have you heard about that limit? I only know about a limit in the individual value size (32,767 characters) for each key. But even that is irrelevant for XY because I do all INI stuff myself (not using API). :)

noir
Posts: 113
Joined: 26 Dec 2008 00:38

Re: ini file - windows limitation?

Post by noir »

i guess if you do your own method of handling the ini its ok, i was just researching ini storage and came across a few articles saying ini's are limited to 64kb , and 32k per section if using the windows api , so thought id ask :)

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: ini file - windows limitation?

Post by PeterH »

noir wrote:as for xml you can use any old editor to edit it, db can be a little harder but can be over more efficient with larger data.
You *could* edit really *every* file with a hex-editor. :? But I don't think you would like it?
And for me native editing of an xml is not much better than editing in hex :evil:

Post Reply