In the book "Algebraic Geometry I" (Gortz Wedhorn) Example 2.37 they calcul the sections of an arbitrary subset $U\subset Spec(A)=X$, ie $\mathcal{O}_X(U)$, where $A$ is an integral domain ($K=\operatorname{Frac}(A)$) :
$$\mathcal{O}_X(U)=\varprojlim_{D(f)\subset U}\mathcal{O}_X(D(f))=\varprojlim_{D(f)\subset U}A_f=\bigcap_{D(f)\subset U} A_f$$
where the intersection is take in $K=\operatorname{Frac}(A)$.
I know how to prove it directly but I don't understand how to prove it with the limit. I think it's only a commutative algebra problem...
If someone can help me I will be grateful. Also I'm sorry for my latex code (the limits is in sens of category).