I just started learning Erlang so I coded this as new.erl:
-module(new).
-export([hello_world]/0).
hello_world()->io:fwrite("Hello\n").
So the function name is hello_world and it holds Hello as string.
But whenever I want to run this, I get this result:
new.erl:2: bad function arity
new.erl:3: Warning: function hello_world/0 is unused
error
So how to solve this problem, what's going wrong here ?