B
bonk
Hello
how do I connect streams in c# ?
Imagine the followung scenario: I have a StreamWriter that writes Text to a
Stream. How can I tell that Stream to pass that Data to another Stream
(connect it to another output Stream) ? In java I am used to connect
streams to each other via thier Constructors.
For example:
new BufferedWriter(new OutputStreamWriter(new FileOutputStream("soc.txt"),
"UTF-8"));
Or even more interesting: What if I wanted that Stream to pass its Data to
multiple other Streams. What do I have to do in that case ?
<> heh, didn't you ever watch Ghostbusters?
<> you can't cross the streams
.... does that mean ... ?
how do I connect streams in c# ?
Imagine the followung scenario: I have a StreamWriter that writes Text to a
Stream. How can I tell that Stream to pass that Data to another Stream
(connect it to another output Stream) ? In java I am used to connect
streams to each other via thier Constructors.
For example:
new BufferedWriter(new OutputStreamWriter(new FileOutputStream("soc.txt"),
"UTF-8"));
Or even more interesting: What if I wanted that Stream to pass its Data to
multiple other Streams. What do I have to do in that case ?
<> heh, didn't you ever watch Ghostbusters?
<> you can't cross the streams
.... does that mean ... ?