Set position in a file in fortran?
-
27-09-2019 - |
문제
How do I set the position in a file in Fortran. As far as I understand, INQUIRE(unit, pos=currentpos)
returns the current position in the file. How do I set the position to currentpos?
I know there's FSEEK, but it appears to be a portability layer on POSIX in ifort. I would prefer a standard way.
해결책
There seems to be no other way then fseek or lseek to set the position in a file.
제휴하지 않습니다 StackOverflow