The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: function CheckTextFileType (FName: string): TTextfileType;

The function CheckTextFileType reads the first four bytes of the file FName and tries to identify the text encoding of the file. The recognized encoding is returned as function result.

Note: If the file FName has less than four bytes the remaining bytes are set to zero values before trying to interprete the file type.

Last Update: 2012-Oct-20