Jump to content

Inifile Read Stopping At Halfway Through


Recommended Posts

Hi,

I'm trying to use an ini file as kind of replacement database. It's currently at ca 5600 entries before inflating.

I tried to get the entries into an array via the

IniReadSection("Itemdatabase.ini", "Items")

command.

However I only get 1146 of the entries returned.

Here's the code:

#include <Array.au3>

Dim $Ergebnis[1]

$vArray = IniReadSection("Itemdatabase.ini", "Items")
    
For $i = 1 To $vArray[0][0]
    $vTemp = _ArraySearch($Ergebnis, $vArray[$i][1])
    ConsoleWrite($i & " = " & $vArray[$i][0] & @LF)
    If $vTemp = -1 Then
        _ArrayAdd($Ergebnis, $vArray[$i][1])
    EndIf
Next

_ArrayDisplay($Ergebnis, "")

Any ideas what I'm doing wrong ?

Link to comment
Share on other sites

  • Developers

Hi,

I'm trying to use an ini file as kind of replacement database. It's currently at ca 5600 entries before inflating.

I tried to get the entries into an array via the

IniReadSection("Itemdatabase.ini", "Items")

command.

However I only get 1146 of the entries returned.

Any ideas what I'm doing wrong ?

Think the max supported size of a section is 32766 characters.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Thanks for the hint.

Found some interesting information here:

www.delphicorner.f9.co.uk/articles/wapi7.htm

Seems to be a windows buffer limitation. Any idea how to circumvent this in autoit?

Open the file and read the section yourself ......

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...