Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Input-loop/Erlang/input-loop.erl
Normal file
8
Task/Input-loop/Erlang/input-loop.erl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
% Implemented by Arjun Sunel
|
||||
-module(read_files).
|
||||
-export([main/0]).
|
||||
|
||||
main() ->
|
||||
Read = fun (Filename) -> {ok, Data} = file:read_file(Filename), Data end,
|
||||
Lines = string:tokens(binary_to_list(Read("read_files.erl")), "\n"),
|
||||
lists:foreach(fun (Y) -> io:format("~s~n", [Y]) end, lists:zipwith(fun(X,_)->X end, Lines, lists:seq(1, length(Lines)))).
|
||||
Loading…
Add table
Add a link
Reference in a new issue