currentOffsetDec

currentOffsetDec(): Decimal;

The currentOffsetDec method of the File class returns the current offset (in file units) as a decimal value.

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, currentOffsetDec = 0 is the first character of data.

Use Decimal[23,0] if you are storing the returned value.