Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Toolkit User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

16.5 File System Access

The Objective Toolkit file system class provides access to common file system functions, such as reading a directory or copying a file. The class also encapsulates parsing and CStringList methods.

16.5.1 SECFileSystem

SECFileSystem is a class that allows you to access common file system functions such as retrieving general information about files and directories, reading directories, copying files, and more.

Figure 137: The Objective Toolkit File System Class Hierarchy

16.5.2 Using SECFileSystem

SECFileSystem can help create code for the following tasks. Please see the Objective Toolkit Class Reference or online help for a full list of methods for this class.

16.5.2.1 To copy a file

Call the CopyFile() method. For example:

16.5.2.2 To copy multiple files

Call the CopyFiles() method. For example:

16.5.2.3 To compare two files

Call the CompareFiles() method. For example:

16.5.2.4 To delete a file

Call the DeleteFile() method. For example:

16.5.2.5 To delete multiple files

Call the DeleteFiles() method. For example:

16.5.2.6 To get information about a file

Call one of the following methods:

For example:

16.5.2.7 To parse filename information on a file

Call one of the following methods:

For example:

16.5.2.8 To get a list of files in a directory

Call the GetDirectory() method. For example:

16.5.2.9 To create a directory

Call the MakeDirectory() method. For example:

16.5.2.10 To change the working directory

Call the ChangeDirectory() method. For example:

16.5.3 SECFileSystem Sample

The Objective Toolkit filedemo sample (Samples\Toolkit\MFC\Utility\filedemo) demonstrates the use of the SECFileSystem class. This sample does not ship with the product. For information on how to obtain this sample, see Section 3.6.1, "Location of Sample Code," in the Stingray Studio Getting Started Guide.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.