Let $f,g:A\subset\mathbb{R}^N\to[0,\infty)$, $f$ is Riemann integrable, and $g=f$ except in finite set, $A$ is a N-dimensional closed cell. Show that $g$ is Riemann integrable and $\int_Af(x)dx=\int_Ag(x)$
I tried to define $h(x)=g(x)-f(x)$, and prove that the integral exists and is zero. For that we could maybe use the lebesgue measure $\lambda(D_h)$, of the discontinuities of $h$, but I don't think it works, because if the difference between $g$ and $f$ was infinite and countable, the set would still have measure zero, but $g$ wouldn't be integrable.
Is there another way to prove it?
Of course, $f=g$ almost everywhere (because finite sets have the Lebesgue measure zero). So, the set of discontinuity points of $g$ is also of measure zero (trivial observation based on discontinuities of $f$ and its integrability). So, $g$ is (Riemann) integrable.