  We will show how to obtain a linear code from a configuration of affine lines
in general position and a suitable set of rational points. We will also explain
a new decoding algorithm based on the configuration, which seems to be quite
effective.
