Fclose » History » Version 3
Per Amundsen, 05/24/2018 10:17 AM
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 | <handle> - The handle to close. |
||
12 | |||
13 | *Example* |
||
14 | |||
15 | <pre> |
||
16 | alias example { |
||
17 | ;Open a file. |
||
18 | /fopen -o x example.txt |
||
19 | |||
20 | ;write to the file |
||
21 | /fwrite x Print this line. |
||
22 | |||
23 | ;Close the file handle |
||
24 | /fclose x |
||
25 | } |
||
26 | </pre> |