anchor.diff:  	    file:close(Fd),
   	    Lines;
   	_ ->
  +	    ?ERROR("Unable to open file: "++File),
   	    error
       end.
  -    
  +
  +%% @doc
  +%% Read all lines from a file. Used by read_file_lines/1
  +%% @end
  +-spec read_file_lines(Fd::pid(), Acc::list()) -> [string()].
   read_file_lines(Fd, Acc) ->
       case file:read_line(Fd) of
   	eof ->
  
positive.code: -include("debug.hrl").
  -export([start/0]).
  
  start() ->
      %% {ok, RootPath} = file:get_cwd(),
      %% FileName = RootPath ++ "/erlastic_search.hrl",
      %% Lines = read_file_lines(FileName),
      %% NewLines = config_lines(Lines),
      %% write_lines(FileName, NewLines),
      elastic_search_config(),
      init:stop().
  
  
  elastic_search_config() ->
      case file:get_cwd() of
  	{ok, CWD} ->
  	    FileName = CWD ++ "/lib/erlastic_search/include/erlastic_search.hrl",
  	    ?DEBUG(file:read_file_info(FileName));
  	_ ->
  	    error
      end.
  
  rabbit_mq_config() ->
      true.
  
  webmachine_config() ->
      true.
  
  
  
  read_file_lines(File) ->
      case file:open(File, [read]) of
  	{ok, Fd} ->
  
negative.code: 	    read_file_lines(Fd, [Line | Acc])
      end.
  
  %% @doc
  %% Writes all lines from a file. If the file exists then all of the old content is removed and Lines will be inserted instead.
  %% @end
  -spec write_lines(Fd::pid(), Lines::[string()]) -> ok | error.
  write_lines(File, Lines) ->
      case file:open(File, [write]) of
  	{ok, Fd} ->
  	    file:write(Fd, Lines),
  	    file:close(Fd);
  	_ ->
  	    ?ERROR("Unable to open file: "++File),
  	    error
      end.
  