(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

LONG Write (file , buffer , length)

LOCATION
In DOSBase at offset 8

SYNOPSIS
BPTR file
APTR buffer
LONG length

FUNCTION
Write some data to a given file. The request is directly given to the filesystem - no buffering is involved. For small amounts of data it's probably better to use the buffered I/O routines.

INPUTS
file
filehandle
buffer
pointer to data buffer
length
number of bytes to write. The filesystem is advised to try to fulfill the request as good as possible.

RESULT
The number of bytes actually written, -1 if an error happened. IoErr() will give additional information in that case.

EXAMPLE

SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
06.12.1997 srittau
Do not use IOFileSys->io_Args

Small changes and bugfixes

27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column

24.10.1996 aros
Use the official AROS macros over the __AROS versions.
13.09.1996 digulla
Use IPTR
13.08.1996 digulla
Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h" Replaced __AROS_LA by __AROS_LHA
01.08.1996 digulla
Added standard header for all files
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS