[Tutor] csv manipulation

qsqgeekyogdty at tiscali.co.uk qsqgeekyogdty at tiscali.co.uk
Wed Oct 29 15:53:50 CET 2008


hello,
i have the follwoing csv file:

"Berat","Berat","Kuçovë","Skrapar"
"Dibër","Bulqizë","Dibër","Mat"
"Durrës","Durrës","Krujë"
"Elbasan","Elbasan","Gramsh","Librazhd","Peqin"
"Fier","Fier","Lushnjë","Mallakastër"
"Gjirokastër","Gjirokastër","Përmet","Tepelenë"
"Korçë","Devoll","Kolonjë","Korçë","Pogradec"
"Kukës","Has","Kukës","Tropojë"
"Lezhë","Kurbin","Lezhë","Mirditë"
"Shkodër","Malësi e Madhe","Pukë","Shkodër"
"Tirana","Kavajë","Tirana"
"Vlorë","Delvinë","Sarandë","Vlorë"

where thee first column contains the regions and the subsequent the 
districts.

what is the best way to return a file like:

"Berat","Kuçovë"
"Berat","Skrapar"
"Dibër","Bulqizë"
"Dibër","Dibër"
"Dibër","Mat"

etc...

and to write it out as a new file.

thanks




________________________________________________

Escape to the sun - http://www.tiscali.co.uk/travel/

________________________________________________



More information about the Tutor mailing list