Page 1 of 1 1
Topic Options
#212477 - 2017-05-04 08:17 PM File '.ini'
AndreLuiz Offline
Getting the hang of it

Registered: 2015-10-07
Posts: 92
Loc: Brasil, João pessoa
Eu tenho uma dúvida, o kixtart consegue ler um arquivo .ini de tamanho ilimitado?

exemplo: 50Mb, 150Mb
É possível? Ou não? E se não qual o tamanho máximo!?

[English]
I have a question, can kixtart read an unlimited size .ini file?

Example: 50Mb, 150Mb
It's possible? Or not? And if not what the maximum size !?

Top
#212478 - 2017-05-04 09:07 PM Re: File '.ini' [Re: AndreLuiz]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
Although I don't personally know what the limits are, there is a limit to the INI file size.

The good news is, there is a UDF that removes this limit and works every bit as good.

Please see IniArray, and it's children ReadIniArray, and WriteIniArray here:
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=202790#Post202790

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1

Top
#212484 - 2017-05-05 01:45 PM Re: File '.ini' [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
If I recall, the INI size limit was 32 or 64 KB - fairly small compared to Kix's file limits.

Please be aware that this UDF family is slightly slower (40-50ms) than direct Read/WriteProfileString functions, but will provide better performance for applications that perform extensive UDF manipulation because the entire file is loaded into RAM. It also eliminates all file size limits. If you modify any INI value, you MUST call the Write function to save the changes, otherwise ReadIniArray and WriteIniArray work exactly like ReadProfileString and WriteProfileString.

Always check my site (see my sig) for the most up-to-date version of my functions - they get updated and published nightly directly from my development library.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 687 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.057 seconds in which 0.028 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org