Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > > I changed to append mode and it is working. > But the thing is that I have another problem. > I am trying to insert usernames that are unique. Please look at the > code and help me. > > import sys > > fd = open('usr.txt','a') > append mode is write-only. more comments f

Re: [Tutor] Help me abt this error

2006-10-17 Thread Asrarahmed Kadri
I changed to append mode and it is working. But the thing is that I have another problem. I am trying to insert usernames that are unique. Please look at the code and help me. import sys fd = open('usr.txt','a') def chk(str):    global fd    fd.seek(0,0)    print fd    done = 0    list1 = []    an

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
: [Tutor] Help me abt this error Asrarahmed Kadri wrote: I am trying to write to a file, but I am getting this errror. IOError: (0, 'Error') Can someone explain what is it and whats the solution?? No. Give us the actual source and the full traceback. Cheers, -Luke

Re: [Tutor] Help me abt this error

2006-10-17 Thread Danny Yoo
> I am trying to write to a file, but I am getting this errror. > > IOError: (0, 'Error') > > Can someone explain what is it and whats the solution?? Hi Asrarahmed, Did you read my response from the last few days? http://mail.python.org/pipermail/tutor/2006-October/049958.html Did you find

Re: [Tutor] Help me abt this error

2006-10-17 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > I am trying to write to a file, but I am getting this errror. > > IOError: (0, 'Error') > > Can someone explain what is it and whats the solution?? No. Give us the actual source and the full traceback. Cheers, -Luke ___ Tutor

[Tutor] Help me abt this error

2006-10-17 Thread Asrarahmed Kadri
I am trying to write to a file, but I am getting this errror.   IOError: (0, 'Error')   Can someone explain what is it and whats the solution??  Thanks.   Regards, Asrar ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor