Mike Wahler wrote:
>
> "pete" <> wrote in message
> news:...
> > Joe Wright wrote:
> > >
> > > pete wrote:
> > > > CBFalconer wrote:
> > > >
> > > >>pete wrote:
> > > >>
> > > >>>Mike Wahler wrote:
> > > >>>
> > > >>>
> > > >>>>No. A stream of characters need not contain a particular
> > > >>>>value character. '\r' (or '\n', etc.) is just another
> > > >>>>character.
> > > >>>
> > > >>>Text streams are composed of lines, which are newline terminated.
> > > >>
> > > >>No
> > > >
> > > >
> > > > N869
> > > > 7.19.2 Streams
> > > > [#2] A text stream is an ordered sequence of characters
> > > > composed into lines each line consisting of zero or more
> > > > characters plus a terminating new-line character.
> > > >
> > > Selective reading pete?
> >
> > I'm just saying
>
> The ISO C standard says
>
> >that text streams are made of lines.
>
> that a text stream may or may not contain one or more
> newline characters.
>
> > If you don't want know that, you don't have to.
>
> Back at ya.
For maximum portability of code involving text streams and text files,
one should terminate text streams with newline characters
and also bear in mind the environmental limits regarding text files.
N869
7.19.2 Streams
Environmental limits
[#7] An implementation shall support text files with lines
containing at least 254 characters, including the
terminating new-line character.
--
pete