IsFileTextΒΆ
IsFileText checks if a file is a text file (ASCII File).
-
bool = IsFileText(ssFileName)
Return Value
bool is TRUE (1) if the file is a text file. If bool is FALSE (0) a
"\0"
character was found in the first 4096 characters of the file.
Parameters
-
ssFileName
ssFileName is the complete path name of the file.
Comment
The function checks if the first 4 kBytes contains Null characters. If NULL characters are found the function returns FALSE. The file is opened in read only mode.
History
Version | Description |
---|---|
5.10.0 | If the file contains a UNICODE BOM (byte order mark) the function returns TRUE. |
5.0.0 | The fuction cannot process Unicode files. |
See also
id-16930