Re: Quick question about streams...?
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Fri, 5 May 2006 19:19:12 -0700
Robby wrote:
Hello,
I am reviewing C++ and if I may say so I prefer C++ instead of C. So
I am gearing myself towards programming my future programs using
classes, objects, inheritance and so forth.
However, I see the need to do some saving of information on my hard
drive and the way to do this is (I believe) is using I/O streams.
I have a very interesting chapter in one of my C books thats shows
all of this! However, can I then apply what I would learn in C (IO
streams) to C++ or is C++ I/O streams far more different?
Quite different, although C++ IOStreams is typically implemented as a layer
atop the C stream functions, that's not a requirement and the programming
interfaces for the two are quite different.
My C++ book does not talk about streams. Also Petzold's book talks
about "Create file" in head.c program on p.411, I don't know if this
is the same as what my C book explains! (It doesn't seem like it!)
No, that's Win32 file I/O - the actual OS-level functions that C stream I/O
is built on (when running on Windows, that is).
I am a little confused about what to learn in order to do some file
saving operations!
Can someone guide me to what I should be learning.... C-I/O streams
or C++ I/O streams?
Ideally, all of the above.
I hope my question makes sence!
Yep, perfect sense.
All suggestions appreciated.
If you're serious about C++ <iostream> streams, the de-facto standard
reference is "C++ IOStreams and Locales" by Angelika Langer and Klaus Kreft.
"The C++ Standard Library" by Nicolai Josuttis has a lot of coverage of I/O
streams as well.
-cd
.
- Follow-Ups:
- Re: Quick question about streams...?
- From: Robby
- Re: Quick question about streams...?
- Prev by Date: Re: Quick question on object instantiation!
- Next by Date: Re: Quick question about streams...?
- Previous by thread: Re: Delay Loaded Managed C++ DLL won't load using VS 2005
- Next by thread: Re: Quick question about streams...?
- Index(es):
Relevant Pages
|