C1Awk Reference > C1Awk Properties > FileType Property |
Returns or sets whether the file being scanned is a text or binary file.
[form!]C1Awk.FileType[ = FileTypeSettings ]
The effect of the settings for the FileType property are described below:
0 - ftText
This setting causes the Awk to interpret the contents of the FileName file as text. Specifically, this means that the Awk will recognize both vbCrLf combinations and vbLf characters as line breaks, and will trim off either the end of each line. In addition, the Awk will truncate the file when it finds an end-of-file marker (Chr(6)).
1 - ftBinary
This setting tells the Awk to perform no conversions whatsoever on the file being scanned.
FileTypeSettings (Enumeration)
ftText (0)