currentOffset64

currentOffset64(): Integer64;

The currentOffset64 method of the File class returns the current offset as an Integer64 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, currentOffset64 = 0 is the first character of data.

The following is an example of the use of the currentOffset64 method.

btnReadSeq_click(btn: Button input) updating;
vars
    len : Integer64;
begin
    len := file.fileLength - file.currentOffset64;
    lblFileStatus.caption := file.readString(len);
end;