| File Handling |
|
| Prior Next | |
|
Directory files represent the operating system directory tables which maintain the list of files present in the system. ProvideX provides read access to these directory lists. When a directory is opened the records read from it contain the names of the files within the directory. The names are not returned in any specific order. The sequence of the entries within a directory is an operating system function.
When opening a directory the INPUT option should be specified on the OPEN directive. ProvideX will not allow the user to write to a directory file.
Normally when reading a directory ProvideX/PxPlus will return each of the file and sub-directory names in the directory. If the system 'SD' parameter is enabled, sub-directories names will be returned with a trailing a directory delimiter (slash).
| |
|
Example: |
Display directory listing
|
|
Special Directory processing |
If using PxPlus and the programmer specifies OPT="+INFO" on the OPEN of a directory, the system will return six (6) fields.
All dates will be returned in form YYYY-MM-DD hh:mm:ss. |
| Prior Next |