Ah I think I've solved it, but I'm not entirely sure if this is correct. Basically we prove by contradiction: assume that the function is not continuous, then for some
![x_0 \in\ [0,1],\ \exists\ \epsilon_0 > 0 x_0 \in\ [0,1],\ \exists\ \epsilon_0 > 0](http://www.mathhelpforum.com/math-help/latex2/img/ff156f45306b15f3cc6a73267ca7b7cc-1.gif)
such that

such that

but

. Then we can find a sequence

which converges to

, but

(this is due to Darboux's property, and we're assuming without loss of generality that

).
Now this sequence is in the pre-image of

, which is closed by assumption. Hence it contains all its accumulation points

, which is a contradiction. Hence,

is continuous.
Is that okay?