Skip to content
Andrew Owen edited this page May 25, 2023 · 1 revision

CLOSE


CLOSE [[#] file_0 [, [#] file_1] ...]

Closes streams. If no file numbers are specified, all open streams [3 to 15] are closed. The hash (#) is optional and has no effect.

Parameters

file_1, file_2, ... are numeric expressions yielding stream numbers.

Errors

  • file_1, file_2, ... are not in [0 to 15]: Bad I/O device.
  • file_1, file_2, ... are not open streams: Undefined stream.
  • file_1, file_2, ... have a string value: Type mismatch.
  • The statement ends in a comma, Syntax error.
  • If an error occurs, only the files before the erratic value are closed.

Welcome to the SE BASIC wiki


  • Press RETURN to return to this menu.
  • Enter the name of a TOPIC to display it.
  • Enter EXIT to return to BASIC.

Choose from the following topics:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally