TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
long FileGetInteger ( int  file_handle,
int  property_id 
)

Gets an integer property of a file

Parameters
file_handleFile descriptor returned by FileOpen()
property_idFile property ID. The value can be one of the following values:
FILE_EXISTSCheck the existence
FILE_CREATE_DATEDate of creation
FILE_MODIFY_DATEDate of the last modification
FILE_ACCESS_DATEDate of the last access to the file
FILE_SIZEFile size in bytes
FILE_POSITIONPosition of a pointer in the file
FILE_ENDGet the end of file sign
FILE_LINE_ENDGet the end of line sign
FILE_IS_COMMONReserved
FILE_IS_TEXTThe file is opened as a text file (see FILE_TXT)
FILE_IS_BINARYThe file is opened as a binary file (see FILE_BIN)
FILE_IS_CSVThe file is opened as CSV (see FILE_CSV)
FILE_IS_ANSIThe file is opened as ANSI (see FILE_ANSI)
FILE_IS_READABLEThe opened file is readable (see FILE_READ)
FILE_IS_WRITABLEThe opened file is writable (see FILE_WRITE)
Returns
The value of the property. In case of an error, -1 is returned. To get an error code use the GetLastError() function.
If a folder is specified when getting properties by the name, the function will have error 5018 (ERR_TMX_FILE_IS_DIRECTORY) in any case,
though the return value will be correct.