Tutorial by Examples

While there are many different control sequences for io:format and io_lib:format, most of the time you'll use only three different ones: ~s, ~p and ~w. ~s The ~s is for strings. It prints strings, binaries and atoms. (Anything else will cause a badarg error.) It doesn't quote or escape anything...

Page 1 of 1