# Funktionsreferenz

FileClose

Closes a previously opened text file.

FileClose ( filehandle )

Parameter

filehandle | The handle of a file, as returned by a previous call to FileOpen.

Bemerkungen

If filehandle is invalid, an AutoIt runtime error will be thrown, and the script will terminate!
Upon termination, AutoIt automatically closes any files it opened--but calling FileClose is still a good idea.
This function is also used to close search handles as returned by FileFindFirstFile().

Siehe auch

FileFindFirstFile, FileOpen

Beispiel

$handle = FileOpen("test.txt", 0)
FileClose($handle)