<?xml version="1.0" encoding="UTF-8"?>

<!--
 * Scilab ( https://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2008 - INRIA - Allan CORNET
 * ...
 *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->

<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
          xmlns:scilab="http://www.scilab.org" xml:id="deletefile" xml:lang="ja">

    <refnamediv>

        <refname>deletefile</refname>

        <refpurpose>ファイルを削除する</refpurpose>

    </refnamediv>

    <refsynopsisdiv>

        <title>呼び出し手順</title>

        <synopsis>f = deletefile(filename)</synopsis>

    </refsynopsisdiv>

    <refsection>

        <title>引数</title>

        <variablelist>

            <varlistentry>

                <term>filename</term>

                <listitem>

                    <para>文字列: 存在または存在しないファイルの名前.</para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>f</term>

                <listitem>

                    <para>

                        論理値: <literal>%t</literal> または <literal>%f</literal>

                    </para>

                </listitem>

            </varlistentry>

        </variablelist>

    </refsection>

    <refsection>

        <title>説明</title>

        <para>

            この関数は,ファイル<varname>filename</varname>を削除します.

            ファイル<varname>filename</varname>が削除された場合に <literal>%t</literal> ,

            それ以外の場合に<literal>%f</literal>を返します.

        </para>

    </refsection>

    <refsection>

        <title>例</title>

        <programlisting role="example"><![CDATA[
fd = mopen(TMPDIR+'/filetodelete.txt','wt');
mclose(fd);
if (fileinfo(TMPDIR+'/filetodelete.txt') <> []) then
deletefile(TMPDIR+'/filetodelete.txt')
end
deletefile(TMPDIR+'/notexistingfile')
    ]]></programlisting>

    </refsection>
    <refsection role="see also">
        <title>参照</title>
        <simplelist type="inline">
            <member>
                <link linkend="mdelete">mdelete</link>
            </member>
            <member>
                <link linkend="rmdir">rmdir</link>
            </member>
        </simplelist>
    </refsection>
    <refsection>
        <title>履歴</title>
        <revhistory>
            <revision>
                <revnumber>6.0.0</revnumber>
                <revremark>Manage multi-dimensionnal arguments to remove multiple files at once.</revremark>
            </revision>
        </revhistory>
    </refsection>
</refentry>

