作者btoker (阿瑞)
看板Fortran
标题[问题] 指定读取文字资料
时间Sat Feb 4 17:24:24 2012
大家好
我想请问fortran90可否做到以下的事
我有一个txt档
txt档内容如下
line
line a
line b
line c
line d
framesections
frame 20x20
frame 50x90
frame 40x50
frame 40x80
frame 50x80
frame 60x90
frame 70x90
frame 80x80
point coordinates
point 1,2
point 3,4
point 4,6
point 3,6
point 3,7
line,framesections, point coordinates三个都算是标题
我想只抓framesections里的八个frame
输出答案为" 8 "
请问是否有指令可以去做判别"我要从哪里开始读"
或是" 读到空白处结束" 并计算个数
谢谢各位
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.166.105.166
1F:→ gilocustom:"read","if-endif"。 02/04 20:18