Hello,

On 27 March 2013 15:59, Sayan Chatterjee <sayanchatter...@gmail.com> wrote:

> Hi Amit,
>
> fo = fopen('fname','r+')
> fo.write("%d   %d",j,counter)
>
>
> Is giving the following error:
>
> File "ZA.py", line 30, in <module>
>     fo = open('fname','r+')
> IOError: [Errno 2] No such file or directory: 'fname'
>
> Where is the mistake?
>

You are trying to open a file named literally "fname" due to putting it in
quotes, you probably want to drop the quotes.

Walter
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to