Top "Stream" questions

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

java try finally block to close stream

I want to close my stream in the finally block, but it throws an IOException so it seems like I …

java file-io stream try-catch finally
What are mark and reset in BufferedReader?

I would like to know what are the mark() and reset() methods of BufferedReader? How do I use them? I …

java stream bufferedreader
changing the delimiter for cin (c++)

I've redirected "cin" to read from a file stream cin.rdbug(inF.rdbug()) When I use the extraction operator it …

c++ stream whitespace delimiter cin
Convert a Stream to a FileStream in C#

What is the best method to convert a Stream to a FileStream using C#. The function I am working on …

c# stream filestream
Obtaining the hash of a file using the stream capabilities of crypto module (ie: without hash.update and hash.digest)

The crypto module of node.js (at the time of this writing at least) is not still deemed stable and …

node.js hash stream
Reading popen results in C++

I am writing a C++ application and I need to read the result of a system command. I am using …

c++ file stream popen fstream
Write Unicode String In a File Using StreamWriter doesn't Work

I have this code: string s = "آ"; StreamWriter writer = new StreamWriter("a.txt", false, Encoding.UTF8); writer.WriteLine(s); but when …

c# .net stream streamwriter
Reading XML from Stream

I'm working with ASP.NET, and am importing an XML file from a form. Right now I convert that into …

c# xml stream xmlreader
DataContractSerializer - how can I output the xml to a string (as opposed to a file)

I had a quick question regarding the datacontractserializer. Maybe it's more of a stream question. I found a piece of …

c# xml-serialization stream iostream datacontractserializer
C++: What is a stream

I have been hearing about stream, more specifically file streams. So what are they? Is it something that has a …

c++ stream filestream fstream