to parse a torrent file