LerN Posted May 9, 2017 Posted May 9, 2017 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.
jguinch Posted May 9, 2017 Posted May 9, 2017 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. Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
LerN Posted May 9, 2017 Author Posted May 9, 2017 i also tried the (ex: of 123456) and it works the question here is why the number i wrote above didn't work ? bec the length ?
Subz Posted May 9, 2017 Posted May 9, 2017 Ini files have a 32kb limitation, when using large Ini files I use @SmOke_N awesome Ini+Ex udf (see link below) , this has always worked for me. If you try it on your code you'll see it now displays all 2000 sections. LerN 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now