Use this command to determine if a file was opened as a binary file.
Disk I/O
isFileBinary fileID |
Name | Type | Required | Comments |
---|---|---|---|
fileID | int | ID of file previously opened with fileOpen |
None
boolean
int $fileID; // Obtain file ID earlier do some operation to the file // ... // See if the file was opened in binary mode if( `isFileBinary $fileID` == true ) print "File is a binary file"; else print "File is a text file"; |