io_lib:write/1 question

Yurii A. Rashkovskii <>
Tue Mar 5 15:36:04 CET 2002


> In your example, you probably need to use lists:flatten/1
> on the list returned by io_lib:write/1.
> 
> (Such a non-flat list is often called an "io_list" or "io_list()",
> by the way, since many io-functions can take them as arguments.)

It works if term is a list (string). But if term contains a list (for
example, {error, errorreason, Reason}, where Reason is list)? What can
you advise?




More information about the erlang-questions mailing list