Re: [Tutor] [Errno 9] Bad file descriptor

2009-12-01 Thread Dave Angel
Khalid Al-Ghamdi wrote: Hi everybody, I'm running python 2.6.1 on vista and I'm trying to use the csv module to write to a csv file and get the average of some numbers, but I keep getting the following error: Traceback (most recent call last): File "C:\Python31\MyCSVProjectFinal.py", line 83,

[Tutor] [Errno 9] Bad file descriptor

2009-11-30 Thread Khalid Al-Ghamdi
Hi everybody, I'm running python 2.6.1 on vista and I'm trying to use the csv module to write to a csv file and get the average of some numbers, but I keep getting the following error: Traceback (most recent call last): File "C:\Python31\MyCSVProjectFinal.py", line 83, in writer.writerow(h

Re: [Tutor] Errno 9

2008-02-28 Thread imonthejazz
I think my problem was naming of the files, changed them and its fine now. Man, i feel stupid. When I have finished my project i'll share it with you guys! On 28/02/2008, Kent Johnson <[EMAIL PROTECTED]> wrote: > > imonthejazz wrote: > > Hi All, > > > > I am trying to read a line in a file then

Re: [Tutor] Errno 9

2008-02-28 Thread Kent Johnson
imonthejazz wrote: > Hi All, > > I am trying to read a line in a file then split the words in the line up. > > This is what i thought would work: > > # filearray.py > > import string > > # THE FOLLOWING FOUR LINE ARE THE CORRECT START TO THE PROGRAM, > # THE SIXTH AND SEVENTH LINES ARE ONLY FO

[Tutor] Errno 9

2008-02-28 Thread imonthejazz
Hi All, I am trying to read a line in a file then split the words in the line up. This is what i thought would work: # filearray.py import string # THE FOLLOWING FOUR LINE ARE THE CORRECT START TO THE PROGRAM, # THE SIXTH AND SEVENTH LINES ARE ONLY FOR QUICK TEST PURPOSE!!! infilename = raw_in