Software Archive
Read-only legacy content
17061 Discussions

input conversion error

Intel_C_Intel
Employee
1,624 Views
"forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read. "
-The above error msg was reported by a win32 console app. Any ideas on a fix?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,624 Views
Correct the program so that it doesn't try to do an internal formatted READ on a string that has data inappropriate to the format. For example, the following program would get this error:

character*5 str

str = "ABCDE"

read (str,'(I5)') i

end


Because "ABCDE" is not valid for I5 input.

Steve

0 Kudos
Reply