[Overview][Constants][Types][Classes][Procedures and functions][Index] |
FileIsText - checks whether the supplied file name refers to a readable text file
Source position: line 0
function FileIsText( |
const AFilename: String |
):Boolean; |
const AFilename: String; |
out FileReadable: Boolean |
):Boolean; |
AFilename |
|
The name of the file for checking |
Returns True if the file is a text file
AFilename |
|
The name of the file for checking |
FileReadable |
|
Returns false if a file reading Exception is encountered |
Returns True if the file is a text file
FileIsText - checks whether the supplied file name refers to a readable text file
Searches the opening section of the file (first 1024 characters) for non-text characters such as ASCII 0 to 31 (except CR and LF, the new line characters)
If there is a file reading error, an Exception is raised and FileReadable returns False
lazarus-ccr.sourceforge.net |