Docs » Autodocs » dos.library » FWrite
FWrite -- Writes a number of blocks to an output (buffered) (V36)
count = FWrite(fh, buf, blocklen, blocks) D0 D1 D2 D3 D4 LONG FWrite(BPTR, STRPTR, ULONG, ULONG)
Attempts to write a number of blocks, each blocklen long, from the specified buffer to the output stream. May return less than the number of blocks requested, if there is some error such as a full disk or r/w error. This call is buffered.
fh - filehandle to use for buffered I/O buf - Area to write bytes from. blocklen - number of bytes per block. Must be > 0. blocks - number of blocks to write. Must be > 0.
count - Number of _blocks_ written. On an error, the number of blocks actually written is returned.
Doesn't clear IoErr() before starting. If you want to find out about errors, use SetIoErr(0L) before calling.
FPutC(), FRead(), FPuts()
|