Hi,<br><br><div class="gmail_quote">On Fri, May 16, 2008 at 10:51 PM, Vlad12 <<a href="mailto:vsarpe@gmail.com">vsarpe@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Does anyone know how to get around this, to write touples into files?<br>
</blockquote></div><br>The docs for file:write/2 specify that the second argument is an iolist(). If you want to output a term, you will have to convert it to its printable value with for example io_lib:format("~w", [Term]). Or instead of using file:write/2, you can use io:format/2.<br>
<br>regards,<br>Vlad<br><br>