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" => r"C:\Users\inshu.chauhan\Desktop\test.arff" or => "C:\\Users\\inshu.chauhan\\Desktop\\test.arff" ++ Thomas Yuck :) -- Cheer

Re: IOerror : need urgent help

2013-02-19 Thread inshu chauhan
On Tue, Feb 19, 2013 at 4:54 PM, MRAB 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 = csv.writer(w) >>

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 Model_600\*.

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 Model_600\*.

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" => r"C:\Users\inshu.chauhan\Desktop\test.arff" or => "C:\\Users\\inshu.chauhan\\Desktop\\test.arff" ++ Thomas 2013/2/19 inshu chauhan > Here is my attempt to merge 10 files

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(