previous |
start |
next
Processing a Sequence of Inputs (Causing the Stream to
Fail)
- When reading input from the console, you can close the stream
manually.
- Ctrl + Z in Windows
- Ctrl + D in UNIX
- Reading from a closed stream causes the stream
to enter the failed state.
previous |
start |
next