PreviousNext
Help > Development > W-Language Functions for AS/400 > IFS functions > ASfRead > Parameters
Parameters


Result1:
integer

Number of bytes or characters actually read.

Result2: Buffer

Result data.

open_id: integer

Value provided by ASfCreate or ASfOpen.

data: buffer or string (allocated).

Data space for receiving result.

length: integer

Number of bytes or characters to read

 

The syntax 1 is better because it translates the data into the provided datatype (from or to Unicode if necessary), whenever the open mode.

 

The number given for <length> and of the result is the "natural" length, which will be:

For syntax 1 :

     several bytes if the the 3rd parameter datatype is binary or text

     several characters if the 3rd parameter datatype is Unicode

For syntax 2 :

     several bytes if the open mode is binary or text

     several Unicode characters if the open mode is Unicode