Jump to content

inireadsectionnames problem


Recommended Posts

Hi, what's the problem in this source ? i have a similar source to it, the problem is the inireadsectionnames reads just 239 section while there's 2000 section in the txt file here's the source :

$writes = "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
for $i = 1 to 2000
FileWrite("lk.txt","[" & $i & "  " & $writes & "]" & @CRLF & @CRLF)
Next

MsgBox(0,"",UBound(IniReadSectionNames("lk.txt")))

I wish if u could tell me another way to read the section name.

Link to comment
Share on other sites

In the IniReadSection, we can read this : Only the first 32767 chars are read for legacy reasons.

It seems that this remark applies to IniReadSectionNames too. I checked with a smaller string for $write (eg : 123456), it works.

 

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...