Hi;<br>
I have data in a file and I would like to write it to a dictionary, and then perform commands on it, something like this:<br>
<br>
<FONT size=2>

<div>input = "/usr/local/machine-lang-trans/dictionary.txt"</div>


<div>input = open(input,'r')<br>
</div>


<div>dict = "{"<br>
for line in input:<br>
  tup = re.split(','line)<br>
  dict += '"' + tup[0] +'":"' + tup[1] +'", '<br>
dict += "}"<br>
input.close()</div>


<div><br>
Of course, that will just give me a string. How do I convert it to, or make from scratch, a dictionary of that?<br>
TIA,<br>
Tony</div>
</FONT><div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
More new features than ever.  Check out the new <a href="http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003" target="_blank">AOL Mail</a>!<br/>
</div>