In this tutorial, we will learn about Java FileReader and its methods with the help of examples. The FileReader class of the java.io package can be used to read data (in characters) from files. Find all Delphi project files in directory d:\projects and its subdirectories : FindFiles('d:\projects', '*.dpr'); If you want to test this procedure, start a new project and add some components to the form: two Edits (one for the starting directory, one for the mask), a Button, a Label and a ListBox. May 11, 2010 · List all Level SubDirectories using VBA The following code lists all the directories under c:\Temp Function GetSubDir(ByVal sDir) Dim oFS As New FileSystemObject Dim oDir Set oDir = oFS.GetFolder(sDir) For Each oSub In oDir.SubFolders MsgBox oSub.Path GetSubDir oSub.Path Next oSub End Function If you want to make your java code platform independent, especially for java file operation, you should know java file separators. There are four separators by default, they are : File.separator, File.separatorChar, File.pathSeparator and File.pathSeparatorChar.