"Luke Paireepinart" <rabidpoobear at gmail.com> wrote in message news:469727CB.5050100 at gmail.com... > >> Try >> >> tfile.write(str(i)+'\n') >> >> OR >> >> tfile.write( "d\n" % i) > Alan meant tfile.write("%d\n" % i) of course ;) Which is why we should always include the list on replies! Thanks for catching that one Luke Alan G.