anchor.diff:  	when
   		File :: string(),
   		Recordname :: atom().
  -%% @doc
  +%% @doc Import data from csv file and create persist table,
  +%% If table is already exsist remove old records form table
  +%% and write new data into the table.
   import(File, Recordname) ->
   	case file:read_file(File) of
   		{ok, Records} ->
  
positive.code: 			exit(Reason)
  	end.
  %% @hidden
  import(Table, _, [<<>>], Acc) ->
  	F = fun(#gtt{} = G) ->
  		mnesia:write(Table, G, write)
  	end,
  	lists:foreach(F, Acc);
  import(Table, Recordname, [Chunk | Rest], Acc) ->
  	H = list_to_tuple([Recordname | string:tokens(binary_to_list(Chunk), ",\"\\")]),
  	import(Table, Recordname, Rest, [#gtt{num = element(2, H), value = H} | Acc]).
  
  %%----------------------------------------------------------------------
  %%  internal functions
  
negative.code: 	end.
  %% @hidden
  import(Table, Recordname, Records) ->
  	case mnesia:create_table(Table,
  			[{disc_copies, [node() | nodes()]},
  			{attributes, record_info(fields, gtt)},
  			{record_name, gtt}]) of
  		{atomic, ok} ->
  			import1(Table, Recordname, Records);
  		{aborted, {already_exists, Table}} ->
  			mnesia:clear_table(Table),
  			import1(Table, Recordname, Records);
  		{aborted, Reason} ->
  			exit(Reason)
  	end.
  %% @hidden
  import1(Table, Recordname, Records) ->
  	Split = binary:split(Records, [<<"\n">>], [global]),
  	F = fun() -> import2(Table, Recordname, Split,[]) end,
  	case mnesia:transaction(F) of
  		{atomic, ok} ->
  			ok;
  