Re: writing a file:newbie question

2007-03-05 Thread Facundo Batista
kavitha thankaian wrote: > say for example,,i have a file test.txt and the file has the list > > a,b,c,d, > > i would like to delete the trailing comma at the end,,, >>> "a,b,c,d,".rstrip(",") 'a,b,c,d' Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http

Re: writing a file:newbie question

2007-02-26 Thread kavitha thankaian
Hi All, Thanks for your reply Gabriel ,,, I just had to use a backslash character to write newline in the proper loop.So I could solve that problem.But now my question is I would like to delete the comma at the end. say for example,,i have a file test.txt and the file has the list

Re: writing a file:newbie question

2007-02-19 Thread Gabriel Genellina
En Mon, 19 Feb 2007 08:02:29 -0300, kavitha thankaian <[EMAIL PROTECTED]> escribió: > Hi, > i have a file test.txt and it contains a list of strings say,,, > "a","b","c","d","a1","b1","c1","d1","a2","b2","c2","d2", > i would like to write the file as > "a","b","c","d" > "a1","b1","c1","d1

writing a file:newbie question

2007-02-19 Thread kavitha thankaian
Hi, i have a file test.txt and it contains a list of strings say,,, "a","b","c","d","a1","b1","c1","d1","a2","b2","c2","d2", i would like to write the file as "a","b","c","d" "a1","b1","c1","d1 "a2","b2","c2","d2" and would like to delete the comma at the end.