Object Oriented Programming20785 marksFile Input/output with Streams
What is meant by stream? Write a program that reads content of file data.txt and displays the content in monitor.
What is meant by stream? Write a program that reads content of file data.txt and displays the content in monitor. [5]
A stream is a sequence of bytes flowing between a program and an input/output device (such as a keyboard, monitor, or file). In C++, a stream acts as an interface between the program and the actual I/O device, allowing data to flow in or out. We have been using the iostream standard library, whic...