[erlang-questions] Opening files in O_TRUNC mode

bengt cean.ebengt@REDACTED
Mon Oct 1 08:25:12 CEST 2018


file:open/2 documentation has this to say about Modes. Does it cover what you want to do?

The file is opened for writing. It is created if it does not exist. If the file exists and write is not combined with read, the file is truncated.

> On 1 Oct 2018, at 05:24, Krishna Sai Veera Reddy <veerareddy@REDACTED> wrote:
> Is it possible to open files in O_TRUNC mode in erlang using the `file` module? If not, is this something we want added to the standard library?
> Thanks,
> Krishna
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20181001/dd527aa2/attachment.htm>

More information about the erlang-questions mailing list