home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2005 November / PCWELT_11_2005.ISO / pcwsoft / autoit-v3-setup.exe / Examples / FileOpen.au3 < prev    next >
Encoding:
Text File  |  2004-09-22  |  173 b   |  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.