[Jprogramming] Scanning a large file
Oleg Kobchenko
olegykj at yahoo.com
Wed May 17 01:12:13 HKT 2006
These are interesting stories about line terminators.
I agree on providing all the data.
But I think absence of final terminator is more
a stylistic issue (or a matter of choice) than a defect.
Hence, it more like truthful conveying than alerting
cleanliness.
Here's on cygwin:
xx at yy ~
$ cat > t1.txt
one
two
xx at yy ~
$ cat > t2.txt
one
two
xx at yy ~
$ od -c t1.txt
0000000 o n e \r \n t w o \r \n
0000012
xx at yy ~
$ od -c t2.txt
0000000 o n e \r \n t w o
0000010
P.S. Unless, it's just an excuse to bash Microsoft again:
picking on Excel, that "$" in the name... If you don't
like it -- don't use it. Any program can do that:
you can either put EOL at the end or not,
so the chance is 50-50. :-)
--- Joey K Tuttle <jkt at qued.com> wrote:
> In any case, because of programs like Excel, any line reading
> program should do its best to provide all the data - and should
> likely alert the user that things didn't end cleanly...
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Programming
mailing list