|
Do you think that two programs could be connected with a stream? A good answer might be:Yes. One program (as it is running) could be a data source for another program. |
Types of Sources and DestinationsA stream that connects two running programs is called a pipe. There are many different devices that function as data sources or destinations. Some can be only a source; others can be only a destination; and others can be both source and destination. Often an object functions as the destination for one stream and as the source for another. In the table, decide what role each object can play. Some objects switch roles depending on what program is running. For example a disk file might be the destination for the output of one program, and later it may be the source for another program. |
QUESTION 3:Do you think it is possible for a program to use several input and several output streams? Click Here after you have answered the question |