문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top