InterviewSolution
| 1. |
What Is A Io Stream? |
|
Answer» It is a stream of data that FLOWS from SOURCE to destination. Good example is FILE copying. TWO streams are involved – input stream and OUTPUT stream. An input stream reads from the file and stores the data in the process (generally in a temporary variable). The output stream reads from the process and writes to the destination file. It is a stream of data that flows from source to destination. Good example is file copying. Two streams are involved – input stream and output stream. An input stream reads from the file and stores the data in the process (generally in a temporary variable). The output stream reads from the process and writes to the destination file. |
|