IS_IOSTAT_END

Elemental Intrinsic Function (Generic): Tests for an end-of-file condition.

構文

result=IS_IOSTAT_END(i)

i

(Input) Must be of type integer.

Results

The result type is default logical. The value of the result is true only if i is a value that could be assigned to the scalar integer variable in an IOSTAT= specifier to indicate an end-of-file condition.

INTEGER IO_STATUS
READ (20, IOSTAT=IO_STATUS) A, B, C
IF (IS_IOSTAT_END (IO_STATUS)) THEN
…                               ! process end of file
ENDIF
…                               ! process data read

このヘルプトピックについてのフィードバックを送信

© 1996-2011 Intel Corporation. 無断での引用、転載を禁じます。