ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. fileClose

Function

fileClose

Server and clientFilesIdentical to MTA:SA

Closes a file and writes its buffer to disk. The handle becomes invalid.

Syntax

bool fileClose(file theFile)

Arguments

theFilefile
A file handle.

Returns

true on success.

Example

local file = fileCreate("test.txt")
fileWrite(file, "abc")
fileClose(file)

See also