csomh Guest
|
Posted: Wed Apr 02, 2008 11:46 am Post subject: IniRead omits first line from ini file |
|
|
I`ve found this somehow strange. Lets have the folloving ahk code:
| Code: | SetWorkingDir %A_ScriptDir%
#Persistent
^k::
IniRead, OutputVar, test.ini, Section, Key, NOT FOUND
MsgBox, %OutputVar%
Return |
...and test.ini:
| Code: | [Section]
Key=Key found |
The hotkey will return NOT FOUND. But, if I add a blank or comment line before [Section], the hotkey works just fine. I couldn't find anything about this issue, and the IniRead example doesn't mention either.
AHK 1.0.47.06, winxp sp2 |
|