IOerror : need urgent help

2013-02-19 Thread inshu chauhan
Here is my attempt to merge 10 files stored in a folder into a single file : import csv with open(C:\Users\inshu.chauhan\Desktop\test.arff, w) as w: writer = csv.writer(w) for f in glob.glob(C:\Users\inshu.chauhan\Desktop\For Model_600\*.arff): rows = open(f, r).readlines()

Re: IOerror : need urgent help

2013-02-19 Thread Thomas Calmant
hi It seems you forgot to escape the escape character in the file names ('\'): C:\Users\inshu.chauhan\Desktop\test.arff = rC:\Users\inshu.chauhan\Desktop\test.arff or = C:\\Users\\inshu.chauhan\\Desktop\\test.arff ++ Thomas 2013/2/19 inshu chauhan insidesh...@gmail.com Here is my attempt to

Re: IOerror : need urgent help

2013-02-19 Thread Mark Lawrence
On 19/02/2013 15:27, inshu chauhan wrote: Here is my attempt to merge 10 files stored in a folder into a single file : import csv with open(C:\Users\inshu.chauhan\Desktop\test.arff, w) as w: writer = csv.writer(w) for f in glob.glob(C:\Users\inshu.chauhan\Desktop\For

Re: IOerror : need urgent help

2013-02-19 Thread MRAB
On 2013-02-19 15:27, inshu chauhan wrote: Here is my attempt to merge 10 files stored in a folder into a single file : import csv with open(C:\Users\inshu.chauhan\Desktop\test.arff, w) as w: writer = csv.writer(w) for f in glob.glob(C:\Users\inshu.chauhan\Desktop\For

Re: IOerror : need urgent help

2013-02-19 Thread inshu chauhan
On Tue, Feb 19, 2013 at 4:54 PM, MRAB pyt...@mrabarnett.plus.com wrote: On 2013-02-19 15:27, inshu chauhan wrote: Here is my attempt to merge 10 files stored in a folder into a single file : import csv with open(C:\Users\inshu.chauhan\**Desktop\test.arff, w) as w: writer =

Re: IOerror : need urgent help

2013-02-19 Thread Mark Lawrence
On 19/02/2013 15:40, Thomas Calmant wrote: hi It seems you forgot to escape the escape character in the file names ('\'): C:\Users\inshu.chauhan\Desktop\test.arff = rC:\Users\inshu.chauhan\Desktop\test.arff or = C:\\Users\\inshu.chauhan\\Desktop\\test.arff ++ Thomas Yuck :) -- Cheers.