System.getProperty("line.separator")

http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html

-Adrian


--- On Mon, 4/19/10, Siegfried Goeschl <[email protected]> wrote:

> From: Siegfried Goeschl <[email protected]>
> Subject: Re: Line Ending Conversion between Unix and Windows ....
> To: "Commons Users List" <[email protected]>
> Date: Monday, April 19, 2010, 3:01 PM
> Hi Michael,
> 
> this was my initial reaction as well ... :-) ... afterwards
> I had to 
> write code to transform to platform specific line endings
> or repair 
> strings with potentially mixed line endings.
> 
> Having said that it is not difficult to write but existing
> code would 
> have been appreciated.
> 
> Cheers,
> 
> Siegfried Goeschl
> 
> On 19.04.10 22:08, E. Michael Akerman wrote:
> > Forgive me if I'm missing something obvious. 
> Can't this be done with
> > just String.replace() ?
> >
> > Michael Akerman
> > Systems Analyst
> > University IT Services
> >
> > ----- Original Message ----- From: "Siegfried
> Goeschl"
> > <[email protected]>
> > To: "Commons Users List" <[email protected]>
> > Sent: Monday, April 19, 2010 12:16 PM
> > Subject: RFC: Line Ending Conversion between Unix and
> Windows ....
> >
> >
> > Hi folks,
> >
> > I just had to type stupid code to do line ending
> conversion between
> > Windows and Unix since I couldn't find existing code
> doing that. Would
> > this be a useful contribution to Commons (e.g. lang,
> codec, io)
> >
> > Thanks in advance,
> >
> > Siegfried Goeschl
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to