Let $f\in L^1([0,1])$ be an absolutely integrable function. Show that if $f$ satisfies $$\int_0^1 f(x)g(x)\,dx=0$$ for all continuous function $g\in C([0,1])$, then $f=0$ a.e.
First consider the case that $f$ is bounded, let $M$ be a bound of $f$. Notice that $C([0,1])$ is dense in $L^{1}([0,1])$, thus we can find a sequence of continuous functions $g_n\in C([0,1])$ such that $\|g_n-f\|_{L^1}\to 0$. Then the claim easily follows from $$\int_0^1 f^2(x)\,dx=\int_{0}^1 f(x)(f(x)-g_n(x))\,dx\leq M\|f-g_n\|_{L^1}.$$ I don't know how to show the case that $f$ is not bounded?
One way is to approximate $1_E$. We shall show that $$\int_{[0,1]} f1_E\,dx=0$$ for every measurable subset $E$ of $[0,1]$.
$f$ is absolutely integrable, thus uniformly integrable. That is for every $\varepsilon>0$, we can find a $\delta>0$ such that $$|\int_{[0,1]} f1_{E}\,dx|\leq \varepsilon$$ for every measurable set $E$ with $m(E)\leq \delta$.
Now suppose that $E$ is a measurable subset of $[0,1]$. By the regularity of Lebesgue measure, we can find an open set $U$ and a compact set $K$ with $K\subset E\subset U$ such that $m(U\setminus K)\leq \delta$, thus $$|\int_{[0,1]} f1_{U\setminus K}\,dx|\leq \varepsilon.$$ By Urysohn's lemma, we can find a continuous function $g$ with $1_{K}\leq g\leq 1_{U}$. Then we have $$|\int_{[0,1]} f1_E\,dx|=|\int_{[0,1]} f(1_E-g)\,dx|\leq |\int_{[0,1]} f1_{U\setminus K}\,dx|\leq \varepsilon.$$ Then claim then follows by sending $\varepsilon$ to zero. To finish the proof, we can use the following equality $$\int_{[0,1]}|f|\,dx=\int_{[0,1]} f1_{f\geq 0}\,dx-\int_{[0,1]}f1_{f<0}\,dx=0.$$