[erlang-questions] Opening files in O_TRUNC mode
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?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions