Writes a character string to a file opened with FCreateEx or FOpenEx.

FWriteEx(nFileHandle, cData [, nMaxBytesToWrite])

Parameters

nFileHandle

A file handle retrieved from FCreateEx, FOpenEx or a windows api function.

cData

The content to write to the file.

nMaxBytesToWrite

default = LEN(cData)

The maximum number of bytes to write to the file.

Return Value

The number of bytes written or 0 if an error occured.

See Also

Reference

AFHandlesEx
FChSizeEx
FCloseEx
FCreateEx
FEoFEx
FFlushEx
FGetsEx
FLockFile
FLockFileEx
FOpenEx
FPutsEx
FReadEx
FSeekEx
FUnlockFile
FUnlockFileEx

Used WinApi functions

WriteFile