INPUT-OUTPUT CLOSE statement
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Closes a specified or default stream opened by an INPUT-OUTPUT THROUGH statement.
Syntax
|
- STREAM stream
- The name of the stream you want to close. If you do not name a stream, the AVM closes the default stream used by an INPUT-OUTPUT THROUGH statement.
- STREAM-HANDLE handle
- The handle to the stream you want to close. If you do not specify the handle, the AVM closes the default stream used by an INPUT-OUTPUT THROUGH statement.
Example
This procedure uses a C program to recalculate the price of each item in inventory. Specifically, the C program increases the price of each item by 3% or by 50 cents, whichever is greater. The INPUT-OUTPUT THROUGH statement tells the procedure to get its input from, and send its output to, the r-iothru.p procedure. The INPUT-OUTPUT CLOSE statement resets the input source to the terminal and the output destination to the terminal.
r-iothru.p
|
Note
For more information, see OpenEdge Programming Interfaces.
See also
DEFINE STREAM statement, INPUT-OUTPUT THROUGH statement, Stream object handle