Fclose » History » Version 1
Per Amundsen, 02/10/2014 01:56 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 | If you specify a wildcard, all matching handle are closed. |
||
| 8 | |||
| 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> |