en:dir [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:dir

## Dir (Function)

### Format

dir ( )
dir ( folder_name )

returns string_value

### Description

Open a folder to retrieve the names the files or folders that are contained in it.

### Example

    f$ = dir("c:\")
    while f$ <> ""
       print f$
       f$ = dir()
    end while

will display something like

    $Recycle.Bin
    autoexec.bat
    Backup
    Boot
    bootmgr
    Documents and Settings
    IO.SYS
    MSDOS.SYS
    MSOCache
    pagefile.sys
    Program Files
    ProgramData
    System Volume Information
    temp
    Users
    Windows

### See Also

Changedir, Close, Currentdir, Dir, Eof, Exists, Freefile, Kill, Open, Openb, Read, Readbyte, Readline, Reset, Seek, Size, Write, Writebyte, Writeline

### History

0.9.6.55 | New to Version

en/dir.txt · Last modified: 2014/02/08 18:38 by admin