【发布时间】:2016-10-06 10:14:27
【问题描述】:
我是一名经验丰富的 Erlang 程序员新手,但我坚持以下几点:
myread() ->
{_, MyData } = file:read_file( "hands.txt" ),
io:format( "hands-out.txt", "~w", MyData ).
当从 shell 调用 myread() 时产生:
** exception error: no function clause matching io:request("hands-out.txt",
{format,"~w", <<"3h 5h 7h 8h 3h 5h 7h 8h q"...>>})
(io.erl, line 556) in function io:o_request/3 (io.erl, line 63)
任何帮助将不胜感激。
【问题讨论】:
标签: erlang