1.Filing in C++ Lecture # 142. Stream Classes A streamis a general name given to a flowof data. A stream is represented by an object of a particular class. Example:…