Top "Stream" questions

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

What is the purpose of flush() in Java streams?

In Java, flush() method is used in streams. But I don't understand what are all the purpose of using this …

java flush stream
Difference between fprintf, printf and sprintf?

Can anyone explain in simple English about the differences between printf, fprintf, and sprintf with examples? What stream is it …

c io stream printf
How to save/restore serializable object to/from file?

I have a list of objects and I need to save that somewhere in my computer. I have read some …

c# serialization stream
Java Process with Input/Output Stream

I have the following code example below. Whereby you can enter a command to the bash shell i.e. echo …

java stream
Reading large text files with streams in C#

I've got the lovely task of working out how to handle large files being loaded into our application's script editor (…

c# .net stream streamreader large-files
How do I turn a String into a InputStreamReader in java?

How can I transform a String value into an InputStreamReader?

java string stream
Play audio from a stream using C#

Is there a way in C# to play audio (for example, MP3) direcly from a System.IO.Stream that for …

.net audio stream mp3 naudio
How to convert a Reader to InputStream and a Writer to OutputStream?

Is there an easy way to avoid dealing with text encoding problems?

java stream
How to create streams from string in Node.Js?

I am using a library, ya-csv, that expects either a file or a stream as input, but I have a …

javascript string node.js stream inputstream
Should I call Close() or Dispose() for stream objects?

Classes such as Stream, StreamReader, StreamWriter etc implements IDisposable interface. That means, we can call Dispose() method on objects of …

c# stream idisposable streamreader streamwriter