DeleteLogicalFile.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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>DeleteLogicalFile</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="1" frame="all" rowsep="1">
  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>ifexists</emphasis></entry>
  27. <entry>Optional. A boolean value indicating whether to post an error
  28. if the <emphasis>filename</emphasis> does not exist. If omitted, the
  29. 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>