anchor.diff:                  ?_test(test_copy_torrent()),
                   ?_test(test_info_filename()),
                   ?_test(test_info_hash()),
  -                ?_test(test_read_torrent())
  +                ?_test(test_read_torrent()),
  +                ?_test(test_read_info()),
  +                ?_test(test_write_info())
               ]}
           ]}
       ]}.
  
positive.code:     RawInfohash = etorrent_metainfo:get_infohash(Metadata),
      ?assertEqual(Infohash, info_hash_to_hex(RawInfohash)).
  
  -endif.
  
negative.code: %% @end
  -spec read_info(binary()) -> {ok, bencode()} | {error, atom()}.
  read_info(Infohash) ->
      Path = info_path(Infohash),
      case file:read_file(Path) of
          {error, _}=Error ->
              Error;
          {ok, Bin} ->
              etorrent_bcoding:decode(Bin)
      end.
  
  %% @doc Rewrite the contents of the .info file of a torrent.
  %% @end
  