Next Topic

Previous Topic

Book Contents

Write

int Write(string sData,int iSize)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sData - Array of data to be written to the file.
  • iSize - Size of data to be written.

Remarks

The function will write from the current position of the file pointer, if needed it will extend the file when passing the current end of file. This function will fail if the opened file is write protected.