Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

portable fseek

tracyx
New Contributor I
583 Views
Is there a portable way of replicating the fseek function (not using ifport)?
How can I replicate functions like:
i) filepointer = fseek(funit,startpos,0)
ii) filepointer = fseek(funit,offset,1)
Thank you,
T.
0 Kudos
1 Reply
mecej4
Honored Contributor III
583 Views
Fortran 2003 provides ACCESS='stream' and POS=ipos keyword arguments in INQUIRE, OPEN, READ and WRITE statements for this purpose. Please consult your compiler reference manual to ascertain if the functionality is sufficient for your needs.
0 Kudos
Reply