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
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
: [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
> 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
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
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