From Faren, 2 Years ago, written in Erlang.
  1. -module(messenger).
  2. -export([start/0]).
  3.  
  4. start() ->
  5. {ok, Binary} = file:read_file("class.txt"),
  6.  Lines= binary:split(Binary,<<"n">>,[global]),
  7.   io:fwrite("~p~n",[nth(2,Lines)]).
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  

Replies to Convert file to list rss

Title Name Language When
Re: Convert file to list Faren erlang 2 Years ago.
captcha