Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

DIR

Description

The DIR() function is used to return information about a file. It takes the general form:

DIR(filename)

Where  filename is a string argument representing the relative or absolute path of a file or directory. This function returns a dynamic array with four attributes.

Attribute
 Description
1 File size in bytes
2 last modified date (in internal format)
3 last modified time (in internal format)
4 D if the filename is a directory, null otherwise


An example of use is as follows: 

     info = DIR("MD")

to assign file information to variable info

Go back to jBASE BASIC.


Was this article helpful?