csv add lines

Francesco Guerrieri f.guerrieri at gmail.com
Mon Jan 14 10:01:40 EST 2008


On Jan 14, 2008 3:52 PM, Alexandru Dumitrescu
<alexandru.dumitrescu at gmail.com> wrote:
>
>
>  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?


Maybe you are still not able to do it :-)
But if you give a look at the csv module you probably will be
in a short time.

Just read
http://docs.python.org/lib/module-csv.html

where you will learn how to parse a csv file.

bye,
Francesco



More information about the Python-list mailing list