2081 1

Object Oriented Programming208110 marksBinary file reading and writing

Define stream.How do you read and write binary files?Write a program to read an integer from the user and if the integer is less than 100 then write it in file named "SMALL.TXT" otherwise write in file named "LARGE.TXT".[2+3+5]

Define stream.How do you read and write binary files?Write a program to read an integer from the user and if the integer is less than 100 then write it in file named "SMALL.TXT" otherwise write in file named "LARGE.TXT".[2+3+5]

--- A stream is an abstraction that represents a flow of data between a program and an input/output device (such as a keyboard, monitor, disk file, etc.). - A stream acts as a logical interface between the program and the actual I/O device. - In C++, streams are implemented through a hierarchy of...

Up nextHow does structure differ with class?What are the uses of friend function and friend class