Daniel Sobral <
dcsobral@...> wrote on 09/07/2009 18:55:47:
> How would you tell apart a line that ends in "\n" with one that
> doesn't? The method getLines doesn't strip away any characters
> present in the file. Which, by the way, is pretty standard behavior.
> In Perl, for instance, you need to "chomp" away newlines if you
> don't want them. Likewise, in Scala, you need to stripLineEnd
> newlines if you don't want them.
I thought this behaviour was odd because I couldn't think of any use-cases
of why you would actually be interested in the line endings. Though I
suppose that if you were, it is at least possible to remove them, whereas
getting whatever the original ones were back wouldn't be...
Kieron
This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.
Please refer to
http://www.bnymellon.com/disclaimer/piml.html for certain disclosures.