Filenames: Parsing Filenames

Describes an example extracting information from file paths.

Download

Click on the following link to download the example: Filenames.zip

Click on the following link to download additional files: CommonFramework.zip

Browse Filenames to view the example code.

Browse CommonFramework to view additional files.

Class summary

TParse TFileName RFs

Description

Filenames demonstrates using class TParse how to parse, interrogate and extract components from filenames. Using a single path name, it shows a simple parse using TParse::Set(), and how the components of the path name are retrieved. It then illustrates parsing using RFs::Parse() with default and related paths.