CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2008
    Posts
    6

    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.

  2. #2
    Join Date
    Oct 2008
    Location
    Tel Aviv, Berlin, L.A.
    Posts
    23

    Re: System.IO.Stream Equivalent?

    Why?

    I mean, how could somebody help you without code or explanations?
    ariell
    programming is understanding

  3. #3
    Join Date
    Apr 1999
    Posts
    27,449

    Re: System.IO.Stream Equivalent?

    What is System.IO.Stream?

    Regards,

    Paul McKenzie

  4. #4
    Join Date
    Oct 2008
    Location
    Tel Aviv, Berlin, L.A.
    Posts
    23

    Re: System.IO.Stream Equivalent?

    I GUESS that refers to Java..?
    ariell
    programming is understanding

  5. #5
    Join Date
    Oct 2008
    Posts
    6

    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.

  6. #6
    Join Date
    Oct 2008
    Location
    Tel Aviv, Berlin, L.A.
    Posts
    23

    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

  7. #7
    Join Date
    Oct 2008
    Posts
    6

    Re: System.IO.Stream Equivalent?

    So there's nothing in the standard C++ library to facilitate generic stream handling like this?

  8. #8
    Join Date
    Aug 2007
    Posts
    858

    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/

  9. #9
    Join Date
    Oct 2008
    Posts
    6

    Cool Re: System.IO.Stream Equivalent?

    Quote Originally Posted by Speedo
    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.
    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
  •  





Click Here to Expand Forum to Full Width

Featured