Re: Opening Multiple files at one time

2015-04-22 Thread subhabrata . banerji
On Monday, April 20, 2015 at 5:30:15 PM UTC+5:30, subhabrat...@gmail.com wrote: > Dear Group, > > I am trying to open multiple files at one time. > I am trying to do it as, > > for item in [ "one", "two", "three" ]: >f = open (item + "world.txt", "w") >f.close() > > This is fi

Re: Opening Multiple files at one time

2015-04-22 Thread Felix Dietrich
subhabrata.bane...@gmail.com writes: > Dear Group, > > I am trying to open multiple files at one time. > I am trying to do it as, > > for item in [ "one", "two", "three" ]: >f = open (item + "world.txt", "w") >f.close() > > This is fine. But I was looking if I do not know the nu

Re: Opening Multiple files at one time

2015-04-21 Thread Dave Angel
On 04/21/2015 03:56 AM, subhabrata.bane...@gmail.com wrote: Yes. They do not. They are opening one by one. I have some big chunk of data I am getting by crawling etc. now as I run the code it is fetching data. I am trying to fetch the data from various sites. The contents of the file are gettin

Re: Opening Multiple files at one time

2015-04-21 Thread subhabrata . banerji
On Tuesday, April 21, 2015 at 4:20:16 AM UTC+5:30, Dave Angel wrote: > On 04/20/2015 07:59 AM, wrote: > > Dear Group, > > > > I am trying to open multiple files at one time. > > I am trying to do it as, > > > > for item in [ "one", "two", "three" ]: > > f = open (item + "world.txt", "w"

Re: Opening Multiple files at one time

2015-04-20 Thread Dave Angel
On 04/20/2015 07:59 AM, subhabrata.bane...@gmail.com wrote: Dear Group, I am trying to open multiple files at one time. I am trying to do it as, for item in [ "one", "two", "three" ]: f = open (item + "world.txt", "w") f.close() This is fine. But it does not open multiple

Re: Opening Multiple files at one time

2015-04-20 Thread sohcahtoa82
On Monday, April 20, 2015 at 5:00:15 AM UTC-7, subhabrat...@gmail.com wrote: > Dear Group, > > I am trying to open multiple files at one time. > I am trying to do it as, > > for item in [ "one", "two", "three" ]: >f = open (item + "world.txt", "w") >f.close() > > This is fine.