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.