<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Greetings!</DIV>
<DIV> </DIV>
<DIV>Firstly, much thanks to those who responded to my last question. That
enabled me to complete a program in Python that was going to take weeks to run
in the language I had been using before. As far as I can tell from test runs it
should complete in about two and a half hours in the Python version, which is
obviously much better for me.</DIV>
<DIV> </DIV>
<DIV>Now for the weird bit. Every time I try to run the thing it gets partway
through and then my computer overheats and dies. (I am working on a laptop which
is slightly temperamental but not usually that bad.) The best it has managed so
far is about a fifth of the full task but there is no consistency to when it
dies in terms of the percentage completed.</DIV>
<DIV> </DIV>
<DIV>I therefore need to either slow the program down so that the machine can
handle it or cut the task into chunks, of which the latter strikes me as the
more practical approach. To do that I need it to save six integer values to a
text file at the end of each run and then take those values as the starting
point for the next run.</DIV>
<DIV> </DIV>
<DIV>I cannot find anything in the Python documentation about how to read
integers from a text file into a list. I assume there is a logical opposite to
str() but have not seen it as yet. Any help would be much appreciated.</DIV>
<DIV> </DIV>
<DIV>All the best,</DIV>
<DIV> </DIV>
<DIV>Prospero.</DIV>
<DIV> </DIV>
<DIV>"Everything that is really great and inspiring is created by the individual
who can labor in freedom." -- Albert Einstein</DIV>
<DIV> </DIV>
<DIV>Prospero's Island <A
href="http://www.prosperosisland.co.uk">http://www.prosperosisland.co.uk</A></DIV></BODY></HTML>