// Project Example: GetFileCount() // Created: 2015-01-19 Setvirtualresolution(640,480) ResetTimer() //Show Current Folder and Files Print("Current Folder: "+GetFolder()) Render() fn$=GetFirstFile() while fn$<>"" Id=OpenToRead(fn$) size=GetFileSize(Id) CloseFile(Id) Print(Spaces(2)+fn$+Spaces(2)+Str(size)+" Bytes") fn$=GetNextFile() endwhile Print("Total Number of Files: "+Str(GetFileCount())) Sync() Repeat Until Timer()>20 End