openFiles

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the openFiles
openFiles()
Summary

Returns a list of files that have been opened with the open file command, but not yet closed with the close file command.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the openFiles
if it is not among the lines of the openFiles then open file it
repeat until the openFiles is empty
Values
NameTypeDescription
return

The openFiles function returns a list of filepaths, one file per line.

RelatedKeyword: file
Command: close file, open file
Function: files
Control Structure: function
Glossary: command, return, file path
Securitydisk
Description

Use the openFiles function to find out which files need to be closed, or to check whether a file is already open before reading from it or writing to it.

The list of file paths is in the same order that the files were opened.

Open files that were not opened by LiveCode are not included in the list returned by the openFiles function.

Tagsfile system