CLOSE

The CLOSE procedure closes the file units specified as arguments. All open files are also closed when IDL exits.

Calling Sequence

CLOSE [,Unit 1 , ..., Unit n ]

Arguments

Unit i

The IDL file units to close.

Keywords

ALL

Set this keyword to close all open file units. In addition, any file units that were allocated via GET_LUN are freed.

FILE

Set this keyword to close all file units from 1 to 99. File units greater than 99, which are associated with the GET_LUN and FREE_LUN procedures, are not affected.

Example

If file units 1 and 3 are open, they can both be closed at the same time by entering the command:

CLOSE, 1, 3

See Also

OPEN