(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

LONG FRead (fh , block , blocklen , number)

LOCATION
In DOSBase at offset 54

SYNOPSIS
BPTR fh
APTR block
ULONG blocklen
ULONG number

FUNCTION
Read a number of blocks from a file.

INPUTS
fh
Read from this file
block
The data is put here
blocklen
This is the size of a single block
number
The number of blocks

RESULT
The number of blocks read from the file or 0 on EOF. This function may return less than the requested number of blocks IoErr() gives additional information in case of an error.

EXAMPLE

SEE ALSO
Open(), FWrite(), FPutc(), Close()

NOTES

BUGS

INTERNALS

HISTORY
10.05.1999 hkiel
Always return the number of (complete) blocks read.
20.10.1998 hkiel
Amiga Research OS
27.01.1997 ldp
Polish
25.11.1996 aros
Two new functions