Skip the 64-KB limit for usual *.INI files...

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Skip the 64-KB limit for usual *.INI files...

Post by *Clo »

>>>Maxwish: for the Max's wish :lol:
>>>Lefteous: OK, sorry, the cat was out the bag about your subject, but I post this again here, following the Maxwish's request...


:arrow: Maybe am I off-target, but it's possible to skip the 64-KB limit for the usual *.INI files (only under Win9x !); that needs to use another file extension & syntax which work in Delphi (D. 5, I don't know for earlier D. versions...)

They are *.SAV files
Example #1:

[langue]=C:\helios\langue\francais.lan
[analyse]=C:\helios\analyse\French.lan
[aide]=C:\helios\aide\aide.htm
[mailpardefaut]=charriesatwanadoodotdotfr
[aide_balise]=C:\helios\aide\Balise.htm


Example #2:

[chaine5]=<IMG SRC="bilder/pfeil.png">
[chaine6]=<!--
[chaine7]=…
[chaine8]=<A ID="xxx"><IMG SRC="bilder/anker.bmp" BORDER="0"></A>
[chaine9]=<BIG>|*BIG* HTML Marker
[chaine10]= BORDERCOLORDARK="cl1" BORDERCOLORLIGHT="cl2"
[chaine11]=<CENTER>
[chaine12]=©| Copyright character


¤ Following a friend who uses this in his programs, it's possible to save any setting in the program-folder without any size-limit.
- The part after the pipe | allows a second string with the same row; here, it's a text in the status-bar...
- Doesn't support any empty row!
- Comments / section-name rows begin with //
Example #3 (language-file)

//PICTURE
100$Choose a Picture...
101$Picture Characteristics
102$Convert into JPEG
103$Convert into PNG
..... and so on ....

What do you think?
Friendly,Claude
Clo
Last edited by Clo on 2003-12-12, 19:25 UTC, edited 3 times in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Clo

The are many ways to store many GB in just one file, even in an INI file. My posting in Nur 36 Suchparameter? was about dividing INI file sections and keys in a way not to hit the 64-KB per section limit, but still using the windows functions and requiring only minor changes.
Post Reply