Cariage return  
Author Message
Ouabaine





PostPosted: 2008-1-17 23:01:00 Top

java-programmer, Cariage return 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





PostPosted: 2008-1-17 23:07:00 Top

java-programmer >> Cariage return Ouabaine wrote:
> 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
>
>
There's a property you can access: System.getProperty("line.separator");

HTH

--
TechBookReport Java - http://www.techbookreport.com/JavaIndex.html
 
Roedy Green





PostPosted: 2008-1-18 2:23:00 Top

java-programmer >> Cariage return On Thu, 17 Jan 2008 16:01:24 +0100, "Ouabaine" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

>
>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
--
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com