Can you explain the concept of streams?

I understand that a stream is a representation of a sequence of bytes. Each stream provides means for reading and writing bytes to its given backing store. But what is the point of the stream? Why isn’t the backing store itself what we interact with?

For whatever reason this concept just isn’t clicking for me. I’ve read a bunch of articles, but I think I need an analogy or something.

15 Answers
15

Leave a Comment