<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Without sight of code it's only a guess but are you creating</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">the file with the 'wb' mode - ie. write binary? :-</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">myPickleFile = open("somefilename.dat", "wb")</span><font face="'bookman old style', 'new york', times, serif"
size="3"><br></font></div><div><font face="'bookman old style', 'new york', times, serif" size="3"><br></font></div><div><font face="'bookman old style', 'new york', times, serif" size="3"><br></font></div><div><font face="'bookman old style', 'new york', times, serif" size="3">oops. Not as in object orientated </font><font face="'bookman old style', 'new york', times, serif">programming</font><font face="'bookman old style', 'new york', times, serif" size="3">, just as in oops, i messed up. pasted wrong bit of code. Here is the relative bit.</font></div><div>
<div><!--StartFragment-->def General_info():</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>file4 = open("Genfacts.p", "rb")</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>Ginfo = pickle.load(file4)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>file4.close()</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>print('General Information: ')</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>GinfoKey = input('CatKey: ')</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>GinfoFact = input('Info: ')</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>Ginfo[GinfoKey] = GinfoFact # add new key:fact</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>file4 = open("Genfacts.p", "wb")</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>pickle.dump(Ginfo, file4)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>file4.close()</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>return(Ginfo)</div><div>Ken</div>
<div><!--EndFragment--></div></div></div></body></html>