Skip to content

FileClose

Close a file handle.

Declaration

Source position: filutilh.inc line 230

  procedure FileClose(Handle: THandle);

Description

FileClose closes the file handle Handle. After this call, attempting to read or write from the handle will result in an error.

For an example, see FileCreate

Errors

None.

See also

Name Description
FileCreate Create a new file and return a handle to it.
FileOpen Open an existing file and return a file handle
FileRead Read data from a file handle in a buffer.
FileSeek Set the current file position on a file handle.
FileTruncate Truncate an open file to a given size.
FileWrite Write data from a buffer to a given file handle.