Lifting terms to string

Erik Pearson erik@REDACTED
Thu Oct 25 22:53:49 CEST 2001


Hi Niels,

That would be io_lib:fwrite/2

Erik.

--On Thursday, October 25, 2001 1:24 PM -0700 Niels Christensen 
<christen@REDACTED> wrote:

> Hi,
>
> say I have a variable X, the values of which
> I'd like to convert to a string, e.g. if
> X=2 then I'd like to produce "2". Is there a
> way to do that in Erlang?
>
> What I really want is a version of io:fwrite that
> produces strings instead of writing to IoDevices.
>
> Thanks,
> Niels
>
>



Erik Pearson
@ Adaptations
email     : erik@REDACTED
voice/fax : +1 510 527 5437
text page : page.erik@REDACTED




More information about the erlang-questions mailing list