<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="ftsave">
  <refmeta>
    <refentrytitle>ftsave</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>ftsave</refname>
    <refpurpose>
      Save a set of previously-allocated tables to a file.
      <indexterm id="IndexFtsave"><primary>ftsave</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Save a set of previously-allocated tables to a file.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>ftsave</command> &quot;filename&quot;, iflag, ifn1 [, ifn2] [...]</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>&quot;filename&quot;</emphasis> -- A quoted string containing the name of the file to save.
    </para>

    <para>
      <emphasis>iflag</emphasis> -- Type of the file to save. (0 = binary file, Non-zero = text file)
    </para>

    <para>
      <emphasis>ifn1, ifn2, ...</emphasis> -- Numbers of tables to save.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>ftsave</emphasis> saves a list of tables to a file. The file's format can be binary or text.
    </para>

    <warning>
      <title>Warning</title>
      <para>
        The file's format is not compatible with a WAV-file and is not endian-safe.
      </para>
    </warning>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the ftsave opcode. It uses the files <ulink url="examples/ftsave.orc"><citetitle>ftsave.orc</citetitle></ulink> and <ulink url="examples/ftsave.sco"><citetitle>ftsave.sco</citetitle></ulink>.

      <example>
        <title>Example of the ftsave opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/ftsave.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/ftsave.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="ftloadk"><citetitle>ftloadk</citetitle></link>,
      <link linkend="ftload"><citetitle>ftload</citetitle></link>,
      <link linkend="ftsavek"><citetitle>ftsavek</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
    <para>Example written by &namekevin;.</para>
    <para>New in version 4.21</para>
  </refsect1>
</refentry>
