From: Claes W. <kl...@ta...> - 2012-08-10 11:53:31
|
On 8/9/12 12:39 PM, CGS wrote: > http://www.erlang.org/doc/man/erl.html or > http://www.erlang.org/doc/man/erl_prim_loader.html (search for efile) > > (loader related) efile means (to load) a file from local file system. > > CGS > Hmm, I though that maybe some of the command below should have produced that error output, but they don't. Eshell V5.8.5 (abort with ^G) 1> {ok, Fd} = file:open("abc", [write, raw]). {ok,{file_descriptor,prim_file,{#Port<0.403>,11}}} 2> file:write(Fd, [anatom]). {error,badarg} 3> file:write(Fd, ["abc", abc, "edf"]). {error,badarg} 4> file:write(Fd, ["abc", 266, "edf"]). {error,badarg} 5> file:write(Fd, [1|2]). {error,badarg} 6> file:write(Fd, "aaa"). ok 7> file:write(Fd, [1|2]). {error,badarg} 8> |