csv add lines

Alexandru Dumitrescu alexandru.dumitrescu at gmail.com
Mon Jan 14 15:52:34 CET 2008


Hi,
I'm new to this list and to python.

I am wondering, am I able to make my program read the *.txt files from a
directory and

to add, at the top of the file, three new lines which are stored in a *.csv
file?

For each *.txt file I have a line in the *.csv file which has in the first

column the name of the *.txt file and in the next three columns the lines
that

I want to add in the corresponding *.txt file.

If it is possible I'd appreciate some help.

Thank you!

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080114/6fba0e7a/attachment.html>


More information about the Python-list mailing list