Construct a function that is not Lebesgue-integrable but it is Riemann-interagrable I must construct a function $f: [0,\infty) \to \mathbb{R}$, but not Lebesgue-Integrable, but $f$ in $[0,c)$ is Riemann-integrable and $$\lim_{c \to \infty} \int_{0}^{c} f(x)dx$$ exists.
What I am thinking is: $f(x)=1/x$ on $\mathbb{R}$ and $f(x)=c, x=0$, which is measurable but it is not Lebesgue-Integrable because both sides of Lebesgue integral positive and negative must be finite.
Problem is that limit of this function doesn't exist since it is $\infty$, so it diverges and so it is not Riemann-Integrable.
What should I do? Thanks in advance!

You can show that : $t\mapsto\frac{\sin t}{t}$ on $[0,+\infty[$ is "Riemann-integrable" (more precisely it's a generalized integral, i.e., limits of Riemann integrals) but that $t\mapsto\frac{\sin t}{t}$ is not Lebesgue-integrable on $[0,+\infty[$ (because $t\mapsto\left\lvert\frac{\sin t}{t}\right\rvert$ is not integrable on $[0,+\infty[$ and so the Lebesgue integral can't be defined). 
Note that we talk about "Riemann-integrable" function on compacts intervals only, and that all the integrals of functions on (semi)-open intervals are get as Riemann-integrals limits, and that Riemann-integrable implies Lebesgue-integrable : indeed, for stairs functions $g$ and $h$ such as $g\leq f\leq h$, we have the equalities
$$\int_a^bg(x)\,dx=\int_{[a,b]}g\,d\lambda\leq\int_{[a,b]}f\,d\lambda\leq\int_{[a,b]}h\,d\lambda=\int_a^bh(x)\,dx$$ showing that Riemann-integrable implies Lebesgue-integrable in all generality.
