DeleteLogicalFile.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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="DeleteLogicalFile">
  5. <title><emphasis role="bold">DeleteLogicalFile</emphasis></title>
  6. <para><emphasis role="bold">STD.File.DeleteLogicalFile<indexterm>
  7. <primary>STD.File.DeleteLogicalFiles</primary>
  8. </indexterm><indexterm>
  9. <primary>File.DeleteLogicalFiles</primary>
  10. </indexterm><indexterm>
  11. <primary>DeleteLogicalFiles</primary>
  12. </indexterm>(</emphasis> <emphasis> filename </emphasis> <emphasis
  13. role="bold">[</emphasis> <emphasis>, ifexists </emphasis> <emphasis
  14. role="bold">] )</emphasis></para>
  15. <informaltable colsep="0" frame="none" rowsep="0">
  16. <tgroup cols="3">
  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>ifexists</emphasis></entry>
  27. <entry>Optional. A boolean value indicating whether to post an error
  28. if the <emphasis>filename</emphasis></entry>
  29. <entry>does not exist. If omitted, the default is FALSE.</entry>
  30. </row>
  31. </tbody>
  32. </tgroup>
  33. </informaltable>
  34. <para>The <emphasis role="bold">DeleteLogicalFile </emphasis>function
  35. removes the named file from disk.</para>
  36. <para>Example:</para>
  37. <programlisting format="linespecific">A := STD.File.DeleteLogicalFile('Fred');
  38. </programlisting>
  39. </sect1>