[Tutor] append in new file??

Joel Goldstick joel.goldstick at gmail.com
Tue Jul 27 18:47:12 CEST 2010


2010/7/27 Ahmed AL-Masri <ahmedn82 at hotmail.com>

>  hello;
>
> I need help in append a data in new file. the problem is the new data are
> generated in every run.
> so at the end I should get all the changes in one file (means for all
> running) if I run 2 times so should get couple of data set.
> note all outputs in txt file.
>

You need to use append mode when you open the file

http://docs.python.org/library/functions.html?highlight=open#open



-- 
Joel Goldstick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100727/c7fb8fc0/attachment.html>


More information about the Tutor mailing list