6. The line $l: y=p x$ (where $p$ is an integer not equal to 0) intersects the line $y=x+10$ at a point that is an integer point (both the x-coordinate and y-coordinate are integers). Therefore, the number of lines $l$ that satisfy this condition is $(\quad)$.
(A)6
(B) 7
(C) 8
(D) infinitely many
6.B.

Solve the system of equations $\left\{\begin{array}{l}y=p x, \\ y=x+10,\end{array}\right.$ to get $x=\frac{10}{p-1}$.
Since $x$ and $p$ are integers, we have
$$
p-1= \pm 10, \pm 5, \pm 2, \pm 1 \text {. }
$$

Thus, $p=11,-9,6,-4,3,-1,2,0$ for a total of 8 values, and $p=0$ is discarded.