[erlang-questions] platform independent new line char...

Bengt Kleberg bengt.kleberg@REDACTED
Fri Apr 9 09:56:58 CEST 2010


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??
> 



More information about the erlang-questions mailing list