From Bitty Monkey, 1 Year ago, written in Erlang.
This paste is a reply to Re: Convert file to list from Faren - view diff
  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",[lists:nth(2,Lines)]).

Replies to Re: Re: Convert file to list rss

Title Name Language When
Re: Re: Re: Convert file to list Cream Cockroach erlang 1 Year ago.
captcha