GFortran I/O error 5002 while reading a direct access file
问题 I have a little Problem reading a file in Fortran. As you can see I am lopping over a file reading certain records with a specific length. What happens is, when it comes to a certain record I'm getting an IOSTAT Error 5002. Now my question is what does this error mean: is it end of file or there is no record left or something else? Can I ignore it? I am using MinGW GFortran 4.8.0. Here's the code: PROGRAM test_read INTEGER*4 HCM_error DOUBLE PRECISION N_Record(22) CHARACTER*8 C_Record(22)