copper.hat answer above works nicely (indeed, it is exactly what I was hinting at in my comment). However I would like to submit an alternative approach, based on the fact that evaluation at a point is a continuous operation on $C(X)$.
Suppose that $C(X)$ is finite dimensional. Then the dual space $[C(X)]^\star$ is finite dimensional too. Observe that for any point $x_0\in X$ the linear functional
$$\delta_{x_0} f = f(x_0)$$
is continuous on $C(X)$, that is $\delta_{x_0}\in [C(X)]^\star$. Also, for any finite set of points $\{x_0, x_1, x_2\ldots x_m\}$ we have that
$$\delta_{x_0}, \delta_{x_1} \ldots \delta_{x_m} \quad \text{are linearly independent.}$$
We can conclude that $X$ is finite because otherwise we could find an infinite family of linearly independent continuous linear functionals.