<div dir="ltr">Hi Anitha,<br><br>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. <br><br>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? <br><br>Regards,<br>Murthy Raju<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 21, 2017 at 4:59 PM, anitha ganesan <span dir="ltr"><<a href="mailto:anithagk12@gmail.com" target="_blank">anithagk12@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hello sir,<div><br></div><div>Thanks for your reply, but I am using window 7 os.I<span style="font-size:12.8px"> can write</span></div><span style="font-size:12.8px">the file for first time but I cant append.</span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 20, 2017 at 10:54 PM, Aravindhan K <span dir="ltr"><<a href="mailto:aravindhank1994@gmail.com" target="_blank">aravindhank1994@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">IMHO the error is with file permissions associated with directory you are working not in the code.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_3548215552453398033h5">On Wed, Sep 20, 2017 at 10:29 PM, anitha ganesan <span dir="ltr"><<a href="mailto:anithagk12@gmail.com" target="_blank">anithagk12@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_3548215552453398033h5"><div dir="ltr">Hello all,<div><br></div><div>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 <a href="https://pastebin.com/eThD9LqN" target="_blank">https://pastebin.com/eThD9L<wbr>qN</a>. and my error is <a href="https://pastebin.com/xY6ExPRr" target="_blank">https://pastebin.com/xY6ExP<wbr>Rr</a>.</div><div><br></div><div>could anyone clear my error.</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Chennaipy mailing list<br>
<a href="mailto:Chennaipy@python.org" target="_blank">Chennaipy@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/chennaipy" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/chennaipy</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Chennaipy mailing list<br>
<a href="mailto:Chennaipy@python.org" target="_blank">Chennaipy@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/chennaipy" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/chennaipy</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Chennaipy mailing list<br>
<a href="mailto:Chennaipy@python.org">Chennaipy@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/chennaipy" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/chennaipy</a><br>
<br></blockquote></div><br></div>