Erlang Mailing Lists

Author Message

<  Erlang  ~  How do I print on console, besides io:fwrite

Jigar Gosar
Posted: Wed Oct 24, 2007 2:33 pm Reply with quote
Joined: 09 Oct 2007 Posts: 9
I know one method io:fwrite(). Are there any other better or recommended functions for directly printing Erlang terms?
View user's profile Send private message
francesco
Posted: Wed Oct 24, 2007 3:27 pm Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
io:format/2 is the most common form. Check out the manual page for io.

Regards,
Francesco
--
http://www.erlang-consulting.com
View user's profile Send private message Visit poster's website
Jigar Gosar
Posted: Wed Oct 24, 2007 3:45 pm Reply with quote
Joined: 09 Oct 2007 Posts: 9
io:format and io:fwrite are the same. I was just looking for some other commonly used alternatives, if any. I remember reading about some function, cant remember its name, something like puts. I hoped some one could point me to it.
View user's profile Send private message
francesco
Posted: Wed Oct 24, 2007 4:03 pm Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
There are no other commonly used alternatives. All io goes through the io module. You might be confusing it with the process dictionary which has the functions put and get.

Francesco
--
http://www.erlang-consulting.com
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum