I would like to know if there is any function in Erlang for writing
io:format("An output line~n").
in the standard output, without having to write ~n
every time, i.e. an equivalent to Java's
System.out.println("An output line");
I mean an already existing Erlang function. I know if it doesn't exist what I should do is creating my own function for that:
write_output(Text) ->
io:format("~p~n", [Text]).