Re: [Tutor] reading and writing with csv then appending some data to a specific line

2007-11-04 Thread Kent Johnson
pierre cutellic wrote: > Hi, > I wrote this script to select some data from a csv file. > Actually it writes it into a file but i would like to append it into an > existing one to a specific line without removing existing code. > does the open(' filename.csv','a+') can do that? > > ag =

Re: [Tutor] reading and writing with csv then appending some data to a specific line

2007-11-04 Thread John
Remember to seek to the end of the file before you start writing. See: http://mail.python.org/pipermail/python-list/2000-August/048839.html ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] reading and writing with csv then appending some data to a specific line

2007-11-04 Thread pierre cutellic
Hi, I wrote this script to select some data from a csv file. Actually it writes it into a file but i would like to append it into an existing one to a specific line without removing existing code. does the open('filename.csv','a+') can do that? here is the existing code: *import csv import sys