When I was reading a textbook about functional analysis, I notice a theorem:
In metric space, if every continuous functions on a closed set $A$ is bounded, then $A$ must be compact.
In the proof, it says that
Suppose that if $A$ is not compact in metric space, then $\exists \delta>0$ and closed balls $B_n$ in $A$, s.t. $d(B_n, B_m)>\delta, n\not=m$.
My question is how to prove the existence of $B_n$? I have tried the similar method in Hausdorff theorem about completely bounded set, but I couldn’t prove that the distances between $B_n$ have a positive bound below. Any help would be appreciated.