Attributes: Directory Entry Details and Listings

Describes an example that creates files and directories and retrieves information about them.

Download

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

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

Browse Attributes to view the example code.

Browse CommonFramework to view additional files.

Class summary

TEntry TTime CDir RFile TFileName

Description

Attributes is an example of how to create a file, and retrieve its entry details and attributes. This demonstrates the use of the TEntry class. A CDir object contains an array of TEntrys which may be retrieved by a call to RFs::GetDir().

Running the example

The code creates several files and directories inside a top level directory called \f32examp\ on the default drive. Before the program terminates, all files and directories created by the program are deleted.