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

Steve Kirsch <>
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

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

More information about the erlang-questions mailing list