In both PHP and C #, languages that I have lately used in my day to day, I have 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 often called "streaming video sites". >
But in the above-mentioned languages, 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 getting the contents of a resource
opened by a fopen
function in a string .
In C # I ended up running into this term when I needed to use the class FileStream
and MemoryStream
, which reminded me a little of the wrappers that PHP uses to read the output buffer, files, or even the memory itself (through the php://output
, php://memory
and the like).
Summarizing my question:
-
What does Stream mean after all?
-
I was wondering if this stream of PHP and Csharp has anything to do with "streaming videos" from sites like Youtube.
-
All languages that work with data manipulation, such as files, temporary files, memory or output buffer, also use this Stream ?
>