|
For displaying a photo gallery. I needed to find the files in a directory.
here's the sample code
' --- Directory Example ----
Dim files() as String = Directory.GetFiles(directoryPath[, optionalWildCard])
' --- DirectoryInfo Example ----
Dim myDir as DirectoryInfo = New DirectoryInfo(directoryPath)
Dim fileInfos() as FileInfo = myDir.GetFiles([optionalWildCard])
|