bard217 发表于 2006-4-8 11:51

关于读取文本文件数据问题!望高手指点

文件如下:
*KEYWORD

NODES

∗NODE
1,0.000000000E+00,0.000000000E+00,0.000000000E+00,0,0
2,0.000000000E+00,0.000000000E+00,0.100000001,0,0
3,0.000000000E+00,0.000000000E+00,0.200000003,0,0
4,0.000000000E+00,0.000000000E+00,0.300000012,0,0
5,0.000000000E+00,0.000000000E+00,0.400000006,0,0

ELEMENTCARDSFORSHELLELEMENTS

*ELEMENT_SHELL_THICKNESS
1,1,1,12,13,2
0.000000E+00,0.000000E+00,0.000000E+00,0.000000E+00
2,1,12,23,24,13
0.000000E+00,0.000000E+00,0.000000E+00,0.000000E+00
3,1,23,34,35,24
0.000000E+00,0.000000E+00,0.000000E+00,0.000000E+00
需要读取的数据是
1,0.000000000E+00,0.000000000E+00,0.000000000E+00,0,0
2,0.000000000E+00,0.000000000E+00,0.100000001,0,0
3,0.000000000E+00,0.000000000E+00,0.200000003,0,0
4,0.000000000E+00,0.000000000E+00,0.300000012,0,0
5,0.000000000E+00,0.000000000E+00,0.400000006,0,0

1,1,1,12,13,2
2,1,12,23,24,13
3,1,23,34,35,24
那位高手指点一下啊!thanks

happy 发表于 2006-4-8 14:39

参考帖子http://forum.vibunion.com/thread-8937-1-1.html
页: [1]
查看完整版本: 关于读取文本文件数据问题!望高手指点