[erlang-questions] platform independent new line char...
David Mercer
dmercer@REDACTED
Fri Apr 9 15:49:27 CEST 2010
Returns [10] on WinXP/R13B03. Windows newline is [13, 10].
> -----Original Message-----
> From: erlang-questions@REDACTED [mailto:erlang-questions@REDACTED] On
> Behalf Of Bengt Kleberg
> Sent: Friday, April 09, 2010 2:57 AM
> To: undisclosed-recipients:
> Cc: erlang-questions@REDACTED
> Subject: Re: [erlang-questions] platform independent new line char...
>
> Greetings,
>
> I do not have Windows available. This is theoretical.
>
> You can get a new line string by doing:
> io_lib:nl() -> chars()
> Returns a character list which represents a new line character.
>
> bengt
>
> On Fri, 2010-04-09 at 08:48 +0200, sapan shah wrote:
> > Hi,
> >
> > Java provides a way to get the new line character in platform
> independent
> > way.
> > String newLine = System.getProperty("line.separator");
> >
> > Is there any way in erlang to do the same??
> >
>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
More information about the erlang-questions
mailing list