Top "Stream" questions

DO NOT USE FOR THE JAVA STREAM API INTRODUCED IN JAVA 8 (use [java-stream] for those questions!

How to detect empty lines while reading from istream object in C++?

How can I detect if a line is empty? I have: 1 2 3 4 5 I'm reading this with istream r so: int n; …

c++ string input stream istream
StandardOutput.ReadToEnd() hangs

I have a program that frequently uses an external program and reads its outputs. It works pretty well using your …

c# stream freeze redirectstandardoutput
What is a stream?

What is a stream in the programming world? Why do we need it? Kindly explain with the help of an …

stream terminology
Process a continuous stream of JSON

The (now defunct) page http://stream.twitter.com/1/statuses/sample.json used to return a continuous and endless stream of …

javascript jquery json stream
Stream.Seek(0, SeekOrigin.Begin) or Position = 0

When you need to reset a stream to beginning (e.g. MemoryStream) is it best practice to use stream.Seek(0, …

c# .net stream
How does std::flush work?

Can someone please explain (preferably using plain english) how std::flush works? What is it? When would you flush a …

c++ stream
ReadAllLines for a Stream object?

There exists a File.ReadAllLines but not a Stream.ReadAllLines. using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Test_Resources.Resources.Accounts.…

c# file text stream
Stream video in Java

What is the best way to record and stream live video to many clients? Are there any libraries?

java video stream video-streaming
StreamWriter writing to MemoryStream

I was under the impression that when you called Flush() in a StreamWriter object it writes to the underlying stream, …

c# .net stream memorystream
How to read entire stream into a std::string?

I'm trying to read an entire stream (multiple lines) into a string. I'm using this code, and it works, but …

c++ string stream