home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / FileOpen.au3 < prev    next >
Text File  |  2004-09-22  |  173b  |  10 lines

  1. $file = FileOpen("test.txt", 0)
  2.  
  3. ; Check if file opened for reading OK
  4. If $file = -1 Then
  5.     MsgBox(0, "Error", "Unable to open file.")
  6.     Exit
  7. EndIf
  8.  
  9. FileClose($file)
  10.