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?



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


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.

1File size in bytes
2last modified date (in internal format)
3last modified time (in internal format)
4D 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?