Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #118606

Re: fstreams

From wij <wyniijj5@gmail.com>
Newsgroups comp.lang.c++
Subject Re: fstreams
Date 2024-03-28 23:02 +0800
Organization A noiseless patient Spider
Message-ID <7bfdca7ec42b083b88cd297f583913dadd778e0d.camel@gmail.com> (permalink)
References (2 earlier) <Hello-20240328090911@ram.dialup.fu-berlin.de> <cone.1711625053.973671.120871.1004@monster.email-scan.com> <book-20240328130043@ram.dialup.fu-berlin.de> <Matt-20240328134408@ram.dialup.fu-berlin.de> <PYeNN.99579$24ld.23368@fx07.iad>

Show all headers | View raw


On Thu, 2024-03-28 at 14:16 +0000, Scott Lurndal wrote:
> ram@zedat.fu-berlin.de (Stefan Ram) writes:
> > ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
> > > The book was written by Bjarne to be used for teaching programming
> > > to undergraduates.
> > 
> >  I used this book by searching for an /arbitrary/ use of fstreams.
> > 
> >  Now, I have looked again and found:
> > 
> >  There is a separate chapter dedicated to "Input and Output Streams"
> >  and a section "I/O error handling". Now, I will look at that chapter
> >  and section.
> > 
> >  Still, I was/am thinking: If there is a proper way to use I/O streams,
> >  then it should be visible in /every/ example program.
> 
> The only proper way to use C++ I/O streams is to _not use them_.
> 

Agree. Because normal users of C++ I/O streams don't understand how complexity
is involved. IOW, it only useful because it is compatible with C I/O stream.
Or useful for communication in simple case.
Otherwise, write your own, like mine:
https://sourceforge.net/projects/cscall/files/latest/download

If you are new C++ programer, learn C first.


Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: fstreams Sam <sam@email-scan.com> - 2024-03-27 17:32 -0400
  Re: fstreams scott@slp53.sl.home (Scott Lurndal) - 2024-03-27 22:35 +0000
    Re: fstreams Michael S <already5chosen@yahoo.com> - 2024-03-28 01:23 +0200
      Re: fstreams "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 18:41 -0700
    Re: fstreams Ben Bacarisse <ben.usenet@bsb.me.uk> - 2024-03-28 09:27 +0000
  Re: fstreams Ralf Fassel <ralfixx@gmx.de> - 2024-03-28 10:37 +0100
  Re: fstreams Sam <sam@email-scan.com> - 2024-03-28 07:24 -0400
    Re: fstreams scott@slp53.sl.home (Scott Lurndal) - 2024-03-28 14:16 +0000
      Re: fstreams wij <wyniijj5@gmail.com> - 2024-03-28 23:02 +0800
      Re: fstreams "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-28 12:44 -0700

csiph-web