From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_00,INVALID_MSGID,
MSGID_RANDY,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no
version=3.4.4
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 103376,d93b7c6dd17cbc81
X-Google-Attributes: gid103376,public
From: "Pascal Obry"
Subject: Re: Strings and reading from a file
Date: 1999/05/14
Message-ID: <7hgn8u$qgm$1@cf01.edf.fr>#1/1
X-Deja-AN: 477739240
References: <7han2q$jkp$1@news.iinet.net.au> <37399913.BD928DD1@pwfl.com>
<7hevh1$g08$1@nnrp1.deja.com> <7hf2bc$imm$1@nnrp1.deja.com>
<7hf611$16i$1@cnn.Princeton.EDU> <373B271F.EA28F9C8@pwfl.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: EDF
X-MSMail-Priority: Normal
Newsgroups: comp.lang.ada
Date: 1999-05-14T00:00:00+00:00
List-Id:
Keith Thompson a �crit dans le message :
yecr9ok4rpn.fsf@king.cts.com...
> Marin David Condic writes:
> [...]
> > However - enamoured as I am with the "perfect" solution that works for
> > any case that may arise - I'd wonder if in practice it isn't a bit of
> > overkill. In my experience with text files, most lines are less than the
> > 80 character width of a punchcard or glass-teletype. Probably 95% of
> > text lines are within twice that number. I can't recall ever seeing a
> > text line (in a standard text file like what would be used for some word
> > processing app - not a custom data file) which ever exceeded a 256 byte
> > string.
>
> No, it's not overkill. I commonly work with text files containing
> lines hundreds, or even thousands, of characters long. Most of them
> are machine-generated (log files and such).
>
Sure others cases are Web pages. Some generator do not add CR in the
HTML file. So a Web page turn out to be written on one line... I've seen
some
line (well page :-) that are more than 10kb long!
Pascal.