FileExists.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="FileExists">
  5. <title>FileExists</title>
  6. <para><emphasis role="bold">STD.File.FileExists<indexterm>
  7. <primary>STD.File.FileExists</primary>
  8. </indexterm><indexterm>
  9. <primary>File.FileExists</primary>
  10. </indexterm><indexterm>
  11. <primary>FileExists</primary>
  12. </indexterm>(</emphasis> <emphasis> filename </emphasis> <emphasis
  13. role="bold">[, </emphasis> <emphasis>physicalcheck</emphasis> <emphasis
  14. role="bold">] )</emphasis></para>
  15. <informaltable colsep="0" frame="none" rowsep="0">
  16. <tgroup cols="2">
  17. <colspec colwidth="80.50pt" />
  18. <colspec />
  19. <tbody>
  20. <row>
  21. <entry><emphasis>filename</emphasis></entry>
  22. <entry>A null-terminated string containing the logical name of the
  23. file.</entry>
  24. </row>
  25. <row>
  26. <entry><emphasis>physicalcheck</emphasis></entry>
  27. <entry>Optional. A boolean TRUE/FALSE to indicate whether to check
  28. for the physical existence the <emphasis>filename</emphasis> on
  29. disk. If omitted, the default is FALSE.</entry>
  30. </row>
  31. <row>
  32. <entry>Return:<emphasis> </emphasis></entry>
  33. <entry>FileExists returns a BOOLEAN value.</entry>
  34. </row>
  35. </tbody>
  36. </tgroup>
  37. </informaltable>
  38. <para>The <emphasis role="bold">FileExists </emphasis>function returns TRUE
  39. if the specified <emphasis>filename</emphasis> is present in the Distributed
  40. File Utility (DFU) and is not a SuperFile (use the STD.File.SuperFileExists
  41. function to detect their presence or absence). If
  42. <emphasis>physicalcheck</emphasis> is set to TRUE, then the file’s physical
  43. presence on disk is also checked.</para>
  44. <para>Example:</para>
  45. <programlisting format="linespecific">A := STD.File.FileExists('~CLASS::RT::IN::People');</programlisting>
  46. </sect1>