Use Cases

UseCase: Find all files with a certain extension

Scenario

Find all mp3s in a file system.

Tree Filesystem

Starting from the root of the file system, recursively search filename for files with that extension.

Database Filesystem

String[] files = GetFiles('Extension=<extension>');

UseCase: Choose a location to store your application settings/data

Tree Filesystem

Solution 1: Ask the user where they want the data stored, put that directory in a registry.
Solution 2: Choose a fixed location (maybe one that includes an environment variable) that will have paths to where the actual settings/data are stored.

Database Filesystem

    MakeGroup('ProgramFiles/MyApplication');
    // Create a file
    CreateFile('MySettings.xml'              ,  // filename
               new String[] {'MyApplication'}); // groups
    // Get a file
    FileOpen('/ProgramFiles/MyApplication/MySettings.xml');