For a metric space $X$, show that if $F \subset X$ is closed and connected then for every pair of points $a, b \in F$ and each $\varepsilon > 0$ there are points $z_0, z_1, ... , z_n \in F$ with $z_0 = a$, $z_n = b$ and $d(z_{k−1},z_k) < \varepsilon$ for
$1 \le k \le n$. Is the hypothesis that $F$ be closed needed?
Actually, I tried to prove it by contradiction, i.e. let there exists distinct $a, b \in F$ and there does not exist any finite set of points in F such that the above condition holds . Then, $\exists \varepsilon>0$ such that for any finite set of points $\{a, z_0, z_1, ..., z_n\} \in F$, there is a positive integer $k<n$ with $d(z_{k−1},z_k) > \varepsilon$ , then for any $z \in F$, $z \ne a,b$ ; either $d(a,z) < \varepsilon$ or $d(a,z) \ge \varepsilon$, now as $F$ is connected, there is a $z$ with $d(a,z) = d(b,z) = \varepsilon$, then I can't approach .