Documentation

xPCFSWriteFile

Write to file on target computer

Prototype

void xPCFSWriteFile(int port, int fileHandle, int numbytes,
const unsigned char *data);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

fileHandle

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

numbytes

Enter the number of bytes this function is to write into the file.

data

The contents to write to fileHandle are stored in data.

Description

The xPCFSWriteFile function writes the contents of the array data to the file specified by fileHandle on the target computer. The fileHandle parameter is the handle of a file previously opened by xPCFSOpenFile. numbytes is the number of bytes to write to the file.

Introduced before R2006a

Was this topic helpful?