Next page | Contents page |

Exercise 9 - FileLister

Write an application called FileLister to write out a directory structure and list the files in each directory, given a starting path on one of your discs. Indent subdirectories and file names to show how they are nested.

This will involve a recursive method (ie, one which calls itself) because you do not know in advance how many levels the directory structure may go down.

Go on to include such things as file size and date (in fact as many file details as possible) in the output list.

Next page | Contents page |