<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>Re: String to term</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Inswitch Solutions - Erlang Evaluation wrote:</FONT>
<BR><FONT SIZE=2>> Hi,</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Does someone know if there is an easy way to convert a string to an Erlang</FONT>
<BR><FONT SIZE=2>> term?</FONT>
<BR><FONT SIZE=2>> example:</FONT>
<BR><FONT SIZE=2>> "{1,2,[hello]}" ---- converted to -----> {1,2,[hello]}</FONT>
</P>
<P><FONT SIZE=2>do you have a file system? if so, write the string to a file, and the </FONT>
<BR><FONT SIZE=2>use <A HREF="file:path_consult/2" TARGET="_blank">file:path_consult/2</A>.</FONT>
</P>
<P><FONT SIZE=2>or have a look in the file module to see what path_consult/2 does. it </FONT>
<BR><FONT SIZE=2>should be handling strings somewhere along the line.</FONT>
</P>
<P><FONT SIZE=2>it would be nice if erlang had strings ports.</FONT>
</P>
<BR>
<P><FONT SIZE=2>bengt</FONT>
</P>
</BODY>
</HTML>