1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
- <sect1 id="FileExists">
- <title>FileExists</title>
- <para><emphasis role="bold">STD.File.FileExists<indexterm>
- <primary>STD.File.FileExists</primary>
- </indexterm><indexterm>
- <primary>File.FileExists</primary>
- </indexterm><indexterm>
- <primary>FileExists</primary>
- </indexterm>(</emphasis> <emphasis> filename </emphasis> <emphasis
- role="bold">[, </emphasis> <emphasis>physicalcheck</emphasis> <emphasis
- role="bold">] )</emphasis></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>filename</emphasis></entry>
- <entry>A null-terminated string containing the logical name of the
- file.</entry>
- </row>
- <row>
- <entry><emphasis>physicalcheck</emphasis></entry>
- <entry>Optional. A boolean TRUE/FALSE to indicate whether to check
- for the physical existence the <emphasis>filename</emphasis> on
- disk. If omitted, the default is FALSE.</entry>
- </row>
- <row>
- <entry>Return:<emphasis> </emphasis></entry>
- <entry>FileExists returns a BOOLEAN value.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">FileExists </emphasis>function returns TRUE
- if the specified <emphasis>filename</emphasis> is present in the Distributed
- File Utility (DFU). If <emphasis>physicalcheck</emphasis> is set to TRUE,
- then the file’s physical presence on disk is also checked.</para>
- <para>Example:</para>
- <programlisting format="linespecific">A := STD.File.FileExists('~CLASS::RT::IN::People');</programlisting>
- <para></para>
- <para>See Also: <link
- linkend="SuperFileExists">SuperFileExists</link></para>
- </sect1>
|