case file:read_file(Args) of
{ok, Data} ->
...;
{error, Reason} ->
....
end;
but when I run the code I get:
exit value: {{case_clause,{ok,<<524 bytes>>}},[{module,fun,1}]}
What am I doing wrong here?
thanks,
-wes
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
I would suspect that you assigned some value to the variable Data in the same function earlier. So now it does not match the info read from the file.
BR,
Jozsef
I kept thinking the structure of this didn't seem wrong.
Thanks again,
-wes
2011/11/9 József Bérces <jozsef...@ericsson.com>: