[Tutor] how to join two text files ?

Mateusz K km_wawa at vp.pl
Sat Mar 26 22:08:43 CET 2011


Hello,

I have many text files, where data is delimited by space.
Each file contain three colums: coordinate x, coordinate y and value for 
this location.

     I would like to join this data to get one big file which will 
contain columns:
coordinate x, coordinate y, value1,value2,..., value_n and save it to 
another text file.

I wrote script, but there's some stupid error (like "\n" character although
I have added .rstrip() command).

Coul You tell me what is most convenient way to join this data
(maybe by using csv module?)?

=========
Best regards,
Mateusz



More information about the Tutor mailing list