On Mon, 17 May 2010 23:57:18 +0530 wrote
>Try:
file = open("input11.txt")
file1 = file.read() # file1 is a string
file.close()
or
file1 = open("input11.txt") # file1 is an open file object
and replace lines:
for line in sce.split(os.linesep):
lst = line.split()
lines[lst[0]] =
Note: Forwarded message attached
-- Original Message --
From: "mannu jha"mannu_0...@rediffmail.com
To: tuomas.vesteri...@iki.fi
Subject: Re: Re: joining files--- Begin Message ---
> import os
> def merge_sources(sources):
> # sources is a list of tuples (source_name, so
Note: Forwarded message attached
-- Original Message --
From: "mannu jha"mannu_0...@rediffmail.com
To: mannu_0...@rediffmail.com
Subject: Re: Re: Re: joining files--- Begin Message ---
On Sun, 16 May 2010 23:51:10 +0530 wrote
>On 05/16/2010 05:04 PM, Dave Angel wrote:
> (You f
On Sun, 16 May 2010 23:51:10 +0530 wrote
>On 05/16/2010 05:04 PM, Dave Angel wrote:
> (You forgot to include the python-list in your response. So it only
> went to me. Normally, you just do reply-all to the message)
> mannu jha wrote:
>> On Sun, 16 May 2010 13:52:31 +0530 wrote
>>> mannu jha wrot
Note: Forwarded message attached
-- Original Message --
From: "mannu jha"mannu_0...@rediffmail.com
To: da...@ieee.org
Subject: Re: Re: joining files--- Begin Message ---
On Sun, 16 May 2010 13:52:31 +0530 wrote
>mannu jha wrote:
> Hi,
>
> I have few files like thi