Project

General

Profile

Actions

Added in 1.8.10

/fclose <handle>

Closes the file associated with this handle.

If you specify a wildcard, all matching handles are closed.

See also /fopen, /fwrite, /fseek, /flist, $fread, $fgetc, $feof, $ferr, $fopen.

Parameters

Parameter Description
<handle> The handle to close.

Example

alias example {
  ; Open a file.
  /fopen -o x example.txt

  ; write to the file.
  /fwrite x Print this line.

  ; Close the file handle.
  /fclose x
}

Updated by Per Amundsen almost 2 years ago · 6 revisions

Also available in: PDF HTML TXT