
  -spec consult(Filename) -> {ok, Terms} | {error, Reason}
                   when
                       Filename :: name_all(),
                       Terms :: [term()],
                       Reason ::
                           posix() |
                           badarg | terminated | system_limit |
                           {Line :: integer(),
                            Mod :: module(),
                            Term :: term()}.

  Reads Erlang terms, separated by '.', from Filename. Returns one
  of the following:

  {ok, Terms}:
    The file was successfully read.

  {error, atom()}:
    An error occurred when opening the file or reading it. For a
    list of typical error codes, see open/2.

  {error, {Line, Mod, Term}}:
    An error occurred when interpreting the Erlang terms in the
    file. To convert the three-element tuple to an English
    description of the error, use format_error/1.

  Example:

    f.txt:  {person, "kalle", 25}.
            {person, "pelle", 30}.

    1> file:consult("f.txt").
    {ok,[{person,"kalle",25},{person,"pelle",30}]}

  The encoding of Filename can be set by a comment, as described
  in epp(3).
