We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3537bbb commit eb36c2bCopy full SHA for eb36c2b
lib/elixir/lib/file.ex
@@ -712,7 +712,13 @@ defmodule File do
712
@doc """
713
Opens the given `path` according to the given list of modes.
714
715
- By default, the file is opened in read mode, as a binary with utf8 encoding.
+ In order to write and read files, one must use the functions
716
+ in the IO module. By default, a file is opened on binary mode
717
+ which requires the functions `IO.binread`, `IO.binwrite` and
718
+ `IO.binreadline` to interact with the file. A developer may pass
719
+ `:utf8` as an option when opening the file and then all other
720
+ functions from IO are available, since they work directly with
721
+ Unicode data.
722
723
The allowed modes:
724
0 commit comments