PSS ID Number: 149151
Article Last Modified on 11/2/1999
C Compile options needed: none
integer i
character*1 string
string = "1"
read(string, *) i
print *, i ! prints 0 (should print 1)
read("7", *) i
print *, i ! prints 0 (should print 7)
read(string, '(i1)') i ! work-around, perform a formated READ
print *, i ! prints 1
read("17", *) i
print *, i ! prints 17
end
Additional query words: 4.00
Keywords: kbLangFortran KB149151
Technology: kbAudDeveloper kbFORTRANPower400NT kbFortranSearch kbZNotKeyword8