Streams and basic file 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 streamis a flow of characters. If the flow is into your
program, the stream is called aninput stream. If the flow is
out of your program, the stream is calledoutput 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
最新资源