Reading format in Fortran 90

前提是你 提交于 2019-12-05 18:14:41

Since it appears that the items don't line up in columns this is tricky to do with formats. I'd approach it this way:

read (55, '(A)')  string
colon_pos = index (string, ":")
read (string (colon_pos+1:len_string), * ) real1, real2, real3, real4

read each line into a string, locate the colon, then use list-directed IO to process the numeric values in the string after the colon.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!