2078 11

CSC166 ยท 2078 ยท 5 marks

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]

Object Oriented ProgrammingChapter 8: File handlingFile Input/output with Streams

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...