The ostream
member function write
outputs to the specified stream a fixed number of bytes, beginning at a specific location in memory. When the stream is associated with a file, function write
writes the data at the location in the file specified by the put file-position pointer. The istream
member function read inputs a fixed number of bytes from the specified stream to an area in memory beginning at a specified address. If the stream is associated with a file, function read
inputs bytes at the location in the file specified by the “get” file-position pointer.
18.118.32.222