Let $\{f_n \}_{n \geq 1}$ be a sequence of non-negative continuous functions defined on $[0,1].$ Assume that $f_n (x) \to f(x)$ for all $x \in [0,1].$ Let $f_n (x) \leq f(x),$ for all $x \in [0,1].$ Show that $$\displaystyle {\lim\limits_{n \to \infty} \int_{0}^{1} f_n (x)\ dx = \int_{0}^{1} f(x)\ dx}.$$
I am trying to apply DCT here but can't able to do that as I don't know whether or not $f$ is Lebesgue integrable. Since we are in a finite measure space so if we can prove that $f$ is bounded then we are through. But I don't think it's true. Here's a counter-example. Consider the sequence of non-negative continuous functions on $[0,1]$ defined by $$ f_n(x) = \left\{ \begin{array}{ll} n^2x, & \quad 0 \leq x \leq \dfrac 1 n; \\ \frac 1 x, & \quad \dfrac 1 n \lt x \leq 1. \end{array} \right. $$
This sequence of functions $\{f_n\}_{n \geq 1}$ converges pointwise to the function $f$ on $[0,1]$ defined by $$ f(x) = \left\{ \begin{array}{ll} 0, & \quad x = 0; \\ \dfrac 1 x, & \quad 0 \lt x \leq 1. \end{array} \right. $$
The function $f$ is clearly unbounded near the point $0.$ So I cannot apply DCT here. So how do I argue for such cases? Any help or suggestion in this regard will be highly appreciated.
Thanks in advance.