C++: What is a stream

前端 未结 4 1918
无人共我
无人共我 2020-12-13 00:05

I have been hearing about stream, more specifically file streams.

So what are they?

Is it something that has a location in the memory?

Is it somethin

4条回答
  •  感动是毒
    2020-12-13 00:35

    File system is designed to work with a wide variety of devices, including terminals, disk drives, tape drives etc. Even though each device is different, file system transforms each into a logical device called stream. Streams are device independent so same function can be used to write a disk file and a tape file. In more technical term stream provides a abstraction between programmer and actual device being used.

提交回复
热议问题