The File class includes the following static properties that provide some useful information about the file system:
|
Property |
Description |
|---|---|
|
File.lineEnding |
The line-ending character sequence used by the host operating system. On Mac OS, this is the line-feed character. On Windows, this is the carriage return character followed by the line-feed character. |
|
File.separator |
The host operating system's path component separator character. On Mac OS, this is the forward slash (/) character. On Windows, it is the backslash (\) character. |
|
File.systemCharSet |
The default encoding used for files by the host operating system. This pertains to the character set used by the operating system, corresponding to its language. |
The Capabilities class also includes useful system information that may be useful when working with files:
|
Property |
Description |
|---|---|
|
Capabilities.hasIME |
Specifies whether the player is running on a system that does (true) or does not (false) have an input method editor (IME) installed. |
|
Capabilities.language |
Specifies the language code of the system on which the player is running. |
|
Capabilities.os |
Specifies the current operating system. |