home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Plus SuperCD 60
/
supercd60_2.iso
/
BlitzBasic
/
Blitz2DPCP
/
data1.cab
/
Support
/
help
/
samples
/
readdir.bb
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2001-11-21
|
301 b
|
17 lines
dir=ReadDir( CurrentDir$() )
Print "Directory of "+CurrentDir$()
Repeat
f$=NextFile$( dir )
If f$="" Then Exit
t=FileType( f$ )
f$=LSet$( f$,32 )
If t=1 ;it's a file!
Print f$+" ("+FileSize( f$ )+")"
Else If t=2 ;it's a dir!
Print f$+" (DIR)"
EndIf
Forever
CloseDir dir