  A basis of the ideal of the complement of a linear subspace in a projective
space over a finite field is given. As an application, the second largest
number of points of plane curves of degree $d$ over the finite field of $q$
elements is also given for $d\geq q+1$.
