[erlang-questions] can you directly generate a binary from format/2 ?

Steve Kirsch steve.kirsch@REDACTED
Fri Apr 17 05:28:51 CEST 2009


io_lib:format("test", []).

returns the string "test".

What I'd like is a way to return <<"test">> instead from the output of
format.

Is there a format/2 somewhere that returns a binary?



More information about the erlang-questions mailing list