0
我似乎總是有使用2「結束」的問題的在代碼例如相同的塊:使用如果foreach循環內聲明
Worker = fun (File) ->
{ok, Device} = file:read_file([File]),
Li = string:tokens(erlang:binary_to_list(Device), "\n"),
Check = string:join(Li, "\r\n"),
FindStr = string:str(Check, "yellow"),
if
FindStr > 1 -> io:fwrite("found");
true -> io:fwrite("not found")
end,
end,
消息是「語法錯誤之前:‘結束’ 「