Format:
integer= write (integer_handler, ref_var, num_bytes);
Write data to open file with provided handler. Return the number of actually written bytes, or a negative number in case of an error.
The data is 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.