Hi Anitha,

When you try to open a file for appending/writing, you may get "IOError:
[Errno 13] Permission denied" if the file is open in another application
and hence locked.

Have you opened  the file che.csv in another application and kept it open
when you were trying to run the script for the second time?

Regards,
Murthy Raju

On Thu, Sep 21, 2017 at 4:59 PM, anitha ganesan <anithag...@gmail.com>
wrote:

> hello sir,
>
> Thanks for your reply, but I am using window 7 os.I can write
> the file for first time but I cant append.
>
> On Wed, Sep 20, 2017 at 10:54 PM, Aravindhan K <aravindhank1...@gmail.com>
> wrote:
>
>> IMHO the error is with file permissions associated with directory you are
>> working not in the code.
>>
>> On Wed, Sep 20, 2017 at 10:29 PM, anitha ganesan <anithag...@gmail.com>
>> wrote:
>>
>>> Hello all,
>>>
>>> I am anitha ganesan, I am beginner for python, I have written a program
>>> to get details and store in csv files. When I run it for first time i will
>>> get answer, but if i wish to add some other input in that file, i am
>>> getting error. My program is https://pastebin.com/eThD9LqN. and my
>>> error is https://pastebin.com/xY6ExPRr.
>>>
>>> could anyone clear my error.
>>>
>>> _______________________________________________
>>> Chennaipy mailing list
>>> Chennaipy@python.org
>>> https://mail.python.org/mailman/listinfo/chennaipy
>>>
>>>
>>
>> _______________________________________________
>> Chennaipy mailing list
>> Chennaipy@python.org
>> https://mail.python.org/mailman/listinfo/chennaipy
>>
>>
>
> _______________________________________________
> Chennaipy mailing list
> Chennaipy@python.org
> https://mail.python.org/mailman/listinfo/chennaipy
>
>
_______________________________________________
Chennaipy mailing list
Chennaipy@python.org
https://mail.python.org/mailman/listinfo/chennaipy

Reply via email to