NWReadFile

Reads a file.

Syntax

   #include <nwfile.h>
   
   N_EXTERN_LIBRARY (NWCCODE) NWReadFile(
      NWFILE_HANDLE   fileHandle,
      nuint32         bytesToRead,
      pnuint32        bytesRead,
      pnuint8         data);
   

Parameters

fileHandle

(IN) Specifies the file to read.

bytesToRead

(IN) Specifies the number of bytes to read.

bytesRead

(OUT) Specifies the number of bytes that were read.

data

(OUT) Points to the data that was read.

Return Values

For more information, see the Return Values for C documentation.