[Tutor] HELP: Creating animation from multiple plots

Walter Prins wprins at gmail.com
Wed Mar 27 17:08:18 CET 2013


Hello,

On 27 March 2013 15:59, Sayan Chatterjee <sayanchatterjee at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130327/7528d792/attachment.html>


More information about the Tutor mailing list