Allows the currentposition of the specified file to be set to any arbitrary point in the file.
position A positive integer specifying the position of the file pointer as a byte offset from the start of the file.
OpenVMS Users: To use POINT_LUN to specify a byte offset in an OpenVMS file, you must use the Block keyword in the OPEN procedure when you open the file. For example:
OPENR, 1, 'File.dat', /Block POINT_LUN, 1, 25B
a = INDGEN(100)
OPENW, unit, 'ptlun.dat', /Get_Lun
WRITEU, unit, a
POINT_LUN, -unit, pos PRINT, 'Current offset into ptlun.dat is', $ pos, ' bytes.'
Current offset into ptlun.dat is 200 bytes.
POINT_LUN, unit, 0
b = INTARR(2)
READU, unit, b PRINT, b
0 1
POINT_LUN, -unit, pos
PRINT, 'Current offset into ptlun.dat is', pos, ' bytes.'
Current offset into ptlun.dat is 4 bytes.
FREE_LUN, unit
For more information, see Positioning File Pointers in Chapter 8 of the PV-WAVE Programmer's Guide.