Hello,
I would like to know if there is a way in my Java application to know what
characters are used in the cariage return of text files on the machine the
application works. Is is 13, 10? Is it 10? is it 13? How can I find this?
Thanks for your input.
Francois
TechBookReport - 17 Jan 2008 15:06 GMT
> Hello,
>
[quoted text clipped - 5 lines]
>
> Francois
There's a property you can access: System.getProperty("line.separator");
HTH

Signature
TechBookReport Java - http://www.techbookreport.com/JavaIndex.html
Roedy Green - 17 Jan 2008 18:23 GMT
>I would like to know if there is a way in my Java application to know what
>characters are used in the cariage return of text files on the machine the
>application works. Is is 13, 10? Is it 10? is it 13? How can I find this?
see http://mindprod.com/jgloss/file.html#PLATFORMSPECIFIC

Signature
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com