Close Instruction

Syntax:

Close [[#]StreamNum][, ...]

Group: File

Description:
Close StreamNums.

Parameter Description

StreamNum Streams 1 through 255 are private to each macro. Streams 256 through 511 are shared by all macros. If this is omitted then all open streams for the current macro/module are closed.

See Also: Open, Reset.

Example:

Sub Main
  ' read the first line of XXX and print it
  Open "XXX" For Input As #1
  Line Input #1,L$
  Debug.Print L$
  Close #1
End
Sub