I'm trying to find an equivalent to System.IO.Stream in C++. I'm using GCC 3.4.5 under MinGW.
Printable View
I'm trying to find an equivalent to System.IO.Stream in C++. I'm using GCC 3.4.5 under MinGW.
Why?
I mean, how could somebody help you without code or explanations?
What is System.IO.Stream?
Regards,
Paul McKenzie
I GUESS that refers to Java..?
In the world of .NET, "Stream" is a class in the "System.IO" namespace. It's an abstract class that allows inheritors to expose different types of functionality as generic streams:
MemoryStream - Buffered memory access.
NetworkStream - Socket stuff.
FileStream - Read/write disk access.
CryptoStream - Cryptographic transformations.
GZipStream - GZip compression/decompression.
Streams can be chained together to combine functionality. If you would like more of a general idea, then look here:
http://msdn.microsoft.com/en-us/libr...io.stream.aspx
EDIT: I'm trying to avoid having to write one.
I guess (again) that you've hit the "wrong" board. We do not deal with dot.NET here, or Visual C++. But there's lots of boards that do at codeguru. Maybe somebody else is right into that stuff and will help you better?
Best from the south.
So there's nothing in the standard C++ library to facilitate generic stream handling like this?
I would say that the iostream class (not the header) and/or streambuf class is closest to what you're looking for: http://www.cplusplus.com/reference/iostream/
Outstanding! Thank you very much.Quote:
Originally Posted by Speedo