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
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
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
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.