File I/O classes and portability

I have to write some file manipulation and I want to do it using C++
stream classes. I’d like to know if those classes are portable.–
Roger D. Vargas
ICQ: 117641572
Linux User: 180787

I have to write some file manipulation and I want to do it using C++
stream classes. I’d like to know if those classes are portable.

They are portable, assuming the platform(compiler/runtime) has a standard
ANSI C++ library. However, all platforms seem to have their own set of C++
quirks that you may have to work around.

IMHO, you would achieve better portability using the C library. On the
other hand, you can do more powerful things more easily using the C++
classes, like using inheritance to create a customized input stream, etc.
I know of at least one program that uses inheritance to create an
inputstream that works with gzipped or raw files but the interface looks
just like regular istreams.

HTH,
DarrellOn Sat, 30 Jun 2001, [ISO-8859-1] Roger Dura?ona Vargas wrote: