<doc>
  <legacy_id>2277</legacy_id>
  <name>openFiles</name>
  <type>function</type>
  <syntax>
    <example>the openFiles</example>
    <example>openFiles()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Files, Folders, &amp; Resources</category>
  </classification>
  <references>
    <command tag="close file">close file Command</command>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
  </security>
  <summary><glossary tag="return">Returns</glossary> a list of <function tag="files">files</function> that have been opened with the <command tag="open file">open file</command> <glossary tag="command">command</glossary>, but not yet closed with the <command tag="close file">close file</command> <glossary tag="command">command</glossary>.</summary>
  <examples>
    <example>the openFiles</example>
    <example>if it is not among the lines of the openFiles then open file it</example>
    <example>repeat until the openFiles is empty</example>
  </examples>
  <description>
    <p>Use the <b>openFiles</b> <control_st tag="function">function</control_st> to find out which <function tag="files">files</function> need to be closed, or to check whether a <keyword tag="file">file</keyword> is already open before reading from it or writing to it.</p><p/><p><b>Value:</b></p><p>The <b>openFiles</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a list of <glossary tag="file path">file paths</glossary>, one <keyword tag="file">file</keyword> per line.</p><p/><p><b>Comments:</b></p><p>The list of file paths is in the same order that the files were opened.</p><p/><p>Open files that were not opened by LiveCode are not included in the list returned by the <b>openFiles</b> <control_st tag="function">function</control_st>.</p>
  </description>
</doc>