te <var>shape</var>, <var>rec</var> = <var>nil</var></code></a></dt><!-- RDLabel: "shapefile.write shape, rec = nil" -->
<dd>
writes <var>shape</var> into shapefile at record number <var>rec</var>.
The <var>shape</var> must be a instance of <a href="#label-29">class Shape</a> or subclass.
Attributes attached to <var>shape</var> are stored into DBF file.
If <var>rec</var> is missing, the record is appended at the end of shapefile.</dd>
<dt><a name="label-28" id="label-28"><code>shapefile.close</code></a></dt