1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00
QB64-PE/internal/help/CLOSE_11111.txt
Roland Heyder aeb9c0668b Updates help files for use with new Wiki parser (2nd try)
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
2022-05-21 00:18:31 +02:00

33 lines
1.1 KiB
Plaintext

{{QBDLDATE:05-20-2022}}
{{QBDLTIME:23:12:18}}
[[CLOSE]] closes an open file or port using the number(s) assigned in an [[OPEN]] statement.
{{PageSyntax}}
: [[CLOSE]] [{{Parameter|fileNumber}}[, ...]]
{{Parameters}}
* {{Parameter|fileNumber}} indicates the file or list of file numbers to close. When not specified, all open files are closed.
{{PageDescription}}
* A file must be closed when changing to another file mode.
* [[CLOSE]] files when they are no longer needed, in order to save memory.
* Files cannot be opened in the same [[OPEN]] mode using another number until the first one is closed.
* Use holding variables for each file number returned by [[FREEFILE]] so that the file reference is known.
* Will not return an error if a filenumber is already closed or was never opened. It does not verify that a file was closed.
* [[CLEAR]] can be used to close all open files.
* [[CLOSE]] can also be used to close an open TCP/IP connection using a handle returned by '''QB64'''.
{{PageSeeAlso}}
* [[OPEN]], [[OPEN COM]]
* [[_OPENCLIENT]], [[_OPENHOST]]
* [[_OPENCONNECTION]]
* [[_SNDCLOSE]]
{{PageNavigation}}