Hello,
On 27 March 2013 15:59, Sayan Chatterjee <[email protected]> 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 - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor