I'm working on a problem which amounts to showing that if $X$ is a compact metric space and $C(X)$ is the space of continuous functions $X\to\mathbb{R},$
$$\forall f\in C(X)\ \ f(x_n) \to f(x)\implies x_n \to x$$
I've done a fair amount of functional analysis (with weak and weak* convergence) but I'm not sure that this result is true.
If it isn't, please let me know, otherwise, I would appreciate a hint to get me started.