File Class Constants

The constants provided by the File class are listed in the following table.

Constant Value Description
Kind_ANSI 2 ANSI text file (default for ANSI JADE)
Kind_Binary 1 Binary file
Kind_Unicode 3 Unicode text file (default for Unicode JADE)
Kind_Unicode_UTF16BE 5 Unicode Transformation Format (UTF) 16-bit, big-endian
Kind_Unicode_UTF16LE 6 Unicode Transformation Format (UTF) 16-bit, little-endian
Kind_Unicode_UTF32BE 9 Unicode Transformation Format (UTF) 32-bit, big-endian
Kind_Unicode_UTF32LE 10 Unicode Transformation Format (UTF) 32-bit, little-endian
Kind_Unicode_UTF8 8 Unicode Transformation Format (UTF) 8 bit
Kind_Unknown_Text 4 Not known if file is ANSI, binary, or Unicode
Mode_Append 3 Append file (output only)
Mode_IO 0 Input-Output file (the default)
Mode_Input 1 Input file only
Mode_Output 2 Output file only
Share_Exclusive 3 Enables the file to be opened for exclusive access, preventing another thread or process from opening the file concurrently
Share_Read 2 Enables another thread or process to open the file for read access
Share_ReadWrite 0 Enables another thread or process to open the file for read/write access (the default)
Share_Write 1 Enables another thread or process to open the file for write access