<div dir="ltr">Hi,<br><br>Thanks for your reply. I just wanted to understand the 'w' mode in Python. So, when using it, it will overwrite any existing mode, right?<br><br>Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 12:13 PM, Adnan Sadzak <span dir="ltr"><<a href="mailto:sadzak@gmail.com" target="_blank">sadzak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi,</p>
<p dir="ltr">Yes, but You also can open an existing file in 'append' mode. <br></p>
<p dir="ltr">Cheers,<br>
Adnan</p>
<div class="gmail_quote"><div><div class="h5">On Jan 15, 2015 12:08 PM, "Abdul Abdul" <<a href="mailto:abdul.sw84@gmail.com" target="_blank">abdul.sw84@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>Hello,<br><br></div>In the Python documentation, when opening the file in write mode, it mentions the following: <i>writing (truncating the file if it already exists)<br><br></i></div>What is meant by "truncating" here? Is it simply overwriting the file already existing?<br><br>Thanks.<br></div>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
<br></font></span></blockquote></div>
</blockquote></div><br></div>