Here is an answer based on the fundamental theorem of calculus. (Note: A answer based on the fact that if a continuous, non negative function
satisfies $\int_a^b \phi = 0$, then $\phi = 0$ on $[a,b]$ is much more
straightforward. This answer is for some comic relief :-).)
The idea is to approximate a step function by a collection of
continuous functions so that we can compute $\int_0^t f(x)dx = 0$, and
by differentiating, we get $f(x) = 0$.
Pick $t \in (a,b)$ and let $g_{t,n}(x) = \begin{cases} 1, & x < t \\
(1-n (x-t)), & t \le x < t+ {1 \over n} \\
0, & \text{otherwise}\end{cases}$.
Since $f$ is continuous, we have $|f(x)| \le B$ for $x \in [a,b]$.
Note that $| \int_a^t f(x)dx - \int_a^b f(x)g_{t,n}(x) dx | \le {1 \over n}B$ and so $\int_a^b f(x)g_{t,n}(x) dx \to \int_a^t f(x)dx$.
Since $\int_a^b (f(x)g_{t,n}(x)) dx = 0$, we see that $F(t)=\int_a^t f(x)dx = 0$, and from the fundamental theorem of calculus we see that
$F'(x)=f(x) = 0$ for $x \in (a,b)$ and hence $f(x) = 0$ for $x \in [a,b]$.