13
In both PHP and C#, languages I’ve been using in my day to day life, I’ve come across a common term: Stream.
Whenever I hear the word Stream, the first thing that comes to mind is Youtube, among other sites, which are usually called "sites that stream video via streaming".
But in the languages mentioned above, the term is usually related to reading and writing data in memory or in a file.
For example, in PHP we have a function called stream_get_contents
which is responsible for obtaining in a string the contents of a resource
open by function fopen
.
Already in C# I ended up bumping into that term when I needed to use the class FileStream
and MemoryStream
, that reminded me a little bit the Wrappers that PHP uses to read the output buffer, files, or even the memory itself (through wrapper php://output
, php://memory
and the like).
Summing up my doubt:
What is the meaning of Stream after all?
I was wondering if this stream PHP and Csharp have something to do with "streaming videos" from sites like Youtube.
All languages that work with data manipulation, such as files, temporary files, memory or buffer output, also use this Stream?
I hear a lot about stream when they talk about Java 8... I also want to know! Good question
– igventurelli
Related: How To Really Understand Streams?
– user28595
The crowd that is negatively answering the questions could explain the reason for the negative. Thus, we could increase the intellectual level of the questions of the site, knowing where the defect is and correcting what needs to be improved.
– Wallace Maxters