Click or drag to resize

Functions.FWrite3 Method

Write a string to an open file

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
Syntax
 FUNCTION FWrite3(
	pFile AS IntPtr,
	pData AS IntPtr,
	dwCount AS DWORD
) AS DWORD
View Source

Parameters

pFile
Type: IntPtr
The handle of the file. Please see the remark below about the compatibility of X# Runtime file handles and Win32 file handles.
pData
Type: IntPtr
A block of memory that holds the data to write to the specified file. The length of this variable must be greater than or equal to the number of bytes in the next parameter.
dwCount
Type: UInt32

Return Value

Type: UInt32
The number of bytes written. If the value returned is equal to nCount, the operation was successful. If the return value is less than the nCount or 0, this means that the length of the buffer/string is less than number of bytes, or the disk is full, or another error has occurred. FError() can be used to determine the specific error.
Remarks
Tip Tip
This function is included for compatibility. We do not recomment using static memory for file i/o operations. We recommend that you use the function overload that takes a byte array parameter in stead.
See Also