Documentation

xPCFSGetFileSize

Return size of file on target computer

Prototype

unsigned int xPCFSGetFileSize(int port, int fileHandle);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

fileHandle

Enter the file handle of an open file on the target computer.

Return

Returns the size of the specified file in bytes. If this function detects an error, it returns -1.

Description

The xPCFSGetFileSize function returns the size, in bytes, of the file associated with fileHandle on the target computer. fileHandle is the handle of a file previously opened by the xPCFSOpenFile function.

The largest single file that you can create on the target computer is 4 GB.

Introduced before R2006a

Was this topic helpful?