[erlang-questions] Documentation error? Why would file:open/2 binary also require raw?

Bjorn Gustavsson bgustavsson@REDACTED
Wed Mar 4 07:21:48 CET 2009


Thanks!

On Tue, Mar 3, 2009 at 7:45 PM, tsuraan <tsuraan@REDACTED> wrote:
> The current file documentation says that if you open a file in binary
> mode, you must also specify raw mode.  This doesn't actually seem to
> be the case; in addition, why would it be that way?  Is this just a
> typo, or obsolete?

Obsolete, and already corrected in the documentation for the upcoming R13A
release.

> Also, the documentation for compressed should probably indicate that
> you must choose to open the file in read or write mode; attempting to
> give [ read, write, compressed ] to file:open reliably gives me {
> error, einval }.

I have now added note about that in the R13A documentation.

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list