PreviousNext
Help > REFERENCE OF THE BUILT-IN FUNCTIONS > Files and File Storage Devices > read
read

Format:

integer= read (integer_handler, ref_var, num_bytes);

Read data from open file with provided handler. Return the number of actually read bytes, or a negative number in case of an error.

 

The incoming data is stored in a buffer provided by referencing a variable. It is very important for the developer to ensure that the data size given in the parameter “num_bytes” is not greater than the actual size of the referenced variable or buffer.