声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1335|回复: 1

[编程技巧] 关于读取文本文件数据问题!望高手指点

[复制链接]
发表于 2006-4-8 11:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
文件如下:
*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
回复
分享到:

使用道具 举报

发表于 2006-4-8 14:39 | 显示全部楼层
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-14 09:49 , Processed in 0.061804 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表