[erlang-questions] Opening files in O_TRUNC mode
Thu Oct 4 08:50:19 CEST 2018
Speaking only for myself, and not even a native english speaker, I think that ‘append’ implies something that you want to put things after. If you truncate there is nothing to put things after. So one of them has to be ‘’wrong’’.
Maybe the person that wrote the software tossed a coin?
> On 1 Oct 2018, at 22:48, Krishna Sai Veera Reddy <veerareddy@REDACTED> wrote:
> Opening file in `write` only mode seems to truncate the file but for whatever reason when `append` mode is also used the file doesn't truncate. Was this intentional?
> erlang-questions mailing list
More information about the erlang-questions