I installed Erlang 13B and tried to follow the tutorials.
Every time I get to c(tut)
, I get an error instead of (ok, tut)
, so it seems like the
You can also create an initialization file named .erlang
under YourErlangInstallationPath\usr\
the content of the file should look something like this;
io:format("consulting .erlang in ~p~n" , [element(2,file:get_cwd())]). %% Edit to the directory where you store your code c:cd("O:/Erlang.Umut"). io:format("Now in:~p~n" , [element(2,file:get_cwd())]).
it will automatically change the path to your working folder. (Obviously, my path is O:/Erlang.Umut
, you need to replace it with yours.)
No need to change folders every time you launch console. Console will be able to reach your erl files directly.