currentOffset(): Integer;
The currentOffset method of the File class returns the current offset as an integer value (in file units).
For Unicode text, the file unit is character (not byte). For Unicode text files that contain a Unicode File Marker, the file marker is ignored; that is, currentOffset = 0 is the first character of data.
If the length of the file is greater than 2G byte file units, use the currentOffset64 method to retrieve the current offset.
The following is an example of the use of the currentOffset method.
btnReadSeq_click(btn: Button input) updating; vars len : Integer; begin len := file.fileLength - file.currentOffset; lblFileStatus.caption := file.readString(len); end;