Streams and basic le I/O
Streams allow you to write programs that handle file input
and keyboard input in a unified way, and that handle file
output and screen output in a unified way.
A stream is a flow of characters. If the flow is into your
program, the stream is called an input stream. If the flow
is out of your program, the stream is called output stream.
If the input stream flows from the keyboard, then your
program will take input from the keyboard. If the input
stream flows from a file, then your program will take its
input from that file. It’s Similar to output stream.
评论0
最新资源