TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
long FileGetInteger ( string  file_name,
int  property_id,
bool  common_folder = false 
)

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
common_folderReserved
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.