Read the data of the current record of the file.
Read the data of the current record of the file.The caller can restrict the number of bytes read by specifying the maximum number of bytes to read by parameter datalen, if datalen is 0, all bytes stored for the current record are copied to the buffer pointed to by data.
RESTRICTIONS:
- data must point to an area of memory being big enough to hold the bytes copied
- datalen must not be negative, it is ignored otherwise