Let $\omega^{1}$ a 1-form defined in an open set $U\subset\mathbb{R}^{n}$. Assume that for each closed differentiable curve $c$ in $U$, $\int_{c}{\omega^{1}}$ is a rational number. Prove that $\omega^{1}$ is closed.
My approach: Let $c_{0},c_{1}:[0,1]\to U$, two curves homotopics. If $\omega^{1}$ is a 1-form closed on $U$, then the line integral along to $c_{0}$ and $c_{1}$ coincide $$\int_{c_{0}}{\omega^{1}}=\int_{c_{1}}{\omega^{1}}$$ So my idea is fixed two rational number, then for the homotopy of $c_{0}$ and $c_{1}$, I'm "obliged" to go through a irrational number.
Edit: I know that question was asked here :Differential form is closed if the integral over a curve is rational number. , but anyway I cannot finish the problem