|
-
October 6th, 2008, 07:33 PM
#1
System.IO.Stream Equivalent?
I'm trying to find an equivalent to System.IO.Stream in C++. I'm using GCC 3.4.5 under MinGW.
-
October 6th, 2008, 07:44 PM
#2
Re: System.IO.Stream Equivalent?
Why?
I mean, how could somebody help you without code or explanations?
ariell
programming is understanding
-
October 6th, 2008, 07:45 PM
#3
Re: System.IO.Stream Equivalent?
What is System.IO.Stream?
Regards,
Paul McKenzie
-
October 6th, 2008, 07:51 PM
#4
Re: System.IO.Stream Equivalent?
I GUESS that refers to Java..?
ariell
programming is understanding
-
October 6th, 2008, 08:08 PM
#5
Re: System.IO.Stream Equivalent?
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.
-
October 6th, 2008, 08:15 PM
#6
Re: System.IO.Stream Equivalent?
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.
ariell
programming is understanding
-
October 6th, 2008, 08:26 PM
#7
Re: System.IO.Stream Equivalent?
So there's nothing in the standard C++ library to facilitate generic stream handling like this?
-
October 6th, 2008, 08:29 PM
#8
Re: System.IO.Stream Equivalent?
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/
-
October 6th, 2008, 08:34 PM
#9
Re: System.IO.Stream Equivalent?
 Originally Posted by Speedo
Outstanding! Thank you very much.
Last edited by wswartzendruber; October 6th, 2008 at 08:49 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|