I don't know if this is a bug or feature, but since I don't see the behavior mentioned at the IniRead doc, I decided to report it as a bug. When there is an empty section name, i.e., the section is just [], IniRead,OutputVarSectionNames,Filename stops reading sections after that. The issue came up in this forum thread:
https://autohotkey.com/boards/viewtopic.php?f=5&t=31559
Regards, Joe
An empty section name terminates IniRead,OutputVarSectionNames,Filename
- JoeWinograd
- Posts: 2182
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: An empty section name terminates IniRead,OutputVarSectionNames,Filename
We don't read or parse the file directly; the OS does.
IIRC, the Win32 API returns a null delimited, double-null terminated list of section names. It would be impossible to differentiate between an empty item and a terminator.
IIRC, the Win32 API returns a null delimited, double-null terminated list of section names. It would be impossible to differentiate between an empty item and a terminator.
- JoeWinograd
- Posts: 2182
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: An empty section name terminates IniRead,OutputVarSectionNames,Filename
Thanks, that explains it. Regards, Joe
Who is online
Users browsing this forum: No registered users and 38 guests