|
| Previous: 3.4.1 IOSTREAM Class Usage | TOC | Index | Back | Next: 3.4.3 CREATE |
ios.CLOSE() ! => Num
Shutdown the I/O stream 'ios' by first flushing its buffer and then closing the file associated with the stream. Flushing a buffer means to write pending output (if the stream has been written to) and to discard any pending input (if the stream is to be read from).
CLOSE returns zero, if the stream could be closed and otherwise -1. After sucessfully sending CLOSE, the receiving stream becomes invalid immediately and must no longer be accessed.
See also: CREATE, OPEN, FLUSH
| Previous: 3.4.1 IOSTREAM Class Usage | TOC | Index | Back | Next: 3.4.3 CREATE |