You are here: The Support Classes > The LTIFileSpec Class

## The LTIFileSpec Class

For portability between Unix and Windows systems and ease of use in internationalized environments, the SDK uses the class `LTFileSpec` to represent file names and paths.

In all cases where the SDK requires use of a file name, for example as a function parameter, an `LTFileSpec` will be used. It is the application’s responsibility to translate filenames from the app-level representation, for example a `char*`, into an `LTFileSpec`.

The `LTFileSpec` class provides the following features:

- creation of an `LTFileSpec` from a directory path and file name, as represented in a variety of formats (multibyte, UTF-8, `wchar_t`, etc.)
- conversion from `LTFileSpec` to a variety of formats
- Unix-style `dirname()` and `basename()`
- file name extension extraction and replacement
- differentiation between relative and absolute paths