BlueScreen Posted January 2, 2004 Share Posted January 2, 2004 I have recently upgraded to AutoIt v.84. Since, I'm experiencing problems on FileReadLine function. It looks like the function reads only the first line! Is there a problem wit my code? 10x $cfgFile = FileOpenDialog( "Choose a cfg file", "", "cfg file (*.cfg)", 1 ) If $cfgFile="0" Then Exit EndIf $handle = FileOpen ($cfgFile, 0) If $handle = -1 Then MsgBox (0, "Error", "There was a problem opening the cfg file. Make sure it is closed") Exit EndIf ;cfg file is now open. Now reading it's content. While 1 $line = FileReadLine($cfgFile) If @error = -1 Then ExitLoop EndIf Msgbox (0,"Line content", $line) Wend FileClose($handle) Link to comment Share on other sites More sharing options...
BlueScreen Posted January 2, 2004 Author Share Posted January 2, 2004 10x Larry. Boy, I'm stupid... :iamstupid: Link to comment Share on other sites More sharing options...
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