On 15/01/2015 11:36, Adnan Sadzak wrote:
On Thu, Jan 15, 2015 at 12:19 PM, Abdul Abdul
Would the two of you please stop top posting, thank you. Either
intersperse your answers, snipping stuff that you're not replying to, or
post at the bottom, in order to make your replies readable. Thanks
Hi,
in 'w' mode, if file does not exist it will create new one (if You have
permissions to write in specified location).
If file exist, it will 'truncate' it or like it is specified in
documentation "*(an existing file with the same name will be erased)*".
I'm not sure what You mean by "existing
Abdul Abdul wrote:
> Hello,
>
> In the Python documentation, when opening the file in write mode, it
> mentions the following:
>
> *writing (truncating the file if it already exists)*
> What is meant by "truncating" here? Is it simply overwriting the file
> already existing?
Not quite. It means
Hi,
Yes, but You also can open an existing file in 'append' mode.
Cheers,
Adnan
On Jan 15, 2015 12:08 PM, "Abdul Abdul" wrote:
> Hello,
>
> In the Python documentation, when opening the file in write mode, it
> mentions the following:
>
> *writing (truncating the file if it already exists)*
> W
Hi,
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?
Thanks.
On Thu, Jan 15, 2015 at 12:13 PM, Adnan Sadzak wrote:
> Hi,
>
> Yes, but You also can open an existing file in 'append' mode.
>
> Cheers,
> Adna
Hello,
In the Python documentation, when opening the file in write mode, it
mentions the following:
*writing (truncating the file if it already exists)*
What is meant by "truncating" here? Is it simply overwriting the file
already existing?
Thanks.
--
https://mail.python.org/mailman/listinfo/py