Project

General

Profile

Fclose » History » Version 5

Per Amundsen, 02/16/2023 12:33 PM

1 1 Per Amundsen
_Added in 1.8.10_
2
3
*/fclose <handle>*
4
5
Closes the file associated with this handle.
6
7 3 Per Amundsen
If you specify a [[Scripting_Wildcards|wildcard]], all matching handles are closed.
8 1 Per Amundsen
9
*Parameters*
10
11 5 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| <handle> | The handle to close. |
14 1 Per Amundsen
15
*Example*
16
17
<pre>
18
alias example {
19 4 Per Amundsen
  ; Open a file.
20 1 Per Amundsen
  /fopen -o x example.txt
21
22 4 Per Amundsen
  ; write to the file.
23 1 Per Amundsen
  /fwrite x Print this line.
24
25 4 Per Amundsen
  ; Close the file handle.
26 1 Per Amundsen
  /fclose x
27
}
28
</pre>