Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

Description

Use this command to determine if a file was opened as a binary file.

Functional area

Disk I/O

Command syntax

Syntax

isFileBinary fileID

Arguments

NameTypeRequiredComments
fileIDint
ID of file previously opened with fileOpen

Flags

None

Return value

boolean

Examples

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";

Additional information

Related commands

  • No labels