声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2693|回复: 3

[综合讨论] 出错了!Tread end-of-file in data read

[复制链接]
发表于 2007-9-5 08:39 | 显示全部楼层 |阅读模式

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

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

x
我用Tread命令将外部的数据调入Table时出现了如下错误
    Tread end-of-file in data read
这是怎么回事??我的命令流完全和帮助中的一样,但就是出现下面的错误!是不是我的文本文件的格式不对啊??命令流和文本文件如下
*DIM,Ttx,4,5,,time,x-coord
*TREAD,Ttx,t2data,txt,,2
文本如下
0 0 0.3 0.5 0.7 0.9
1 2 3    5    8    9
2 5 9    5    6    8
3 6 8    5    2    4
4 4 2    3    5    7
该文本我存在工作目录下了!为什么不对呢??

[ 本帖最后由 rodge 于 2007-9-6 20:48 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-9-5 19:38 | 显示全部楼层
*TREAD, Par, Fname, Ext, --, NSKIP

Reads data from an external file into a table array parameter.

NSKIP
Number of comment lines at the beginning of the file being read that will be skipped during the reading. Default = 0.

你的数据读入,TREAD,Ttx,t2data,txt,,2
忽略前面2行数据,
你剩下的数据就只有3×6=18个
而你的数组有20个数据,当然会读到数据文件的结尾end-of-file了
 楼主| 发表于 2007-9-5 20:52 | 显示全部楼层
:handshake !呵呵!谢谢!看来我看东西太不仔细了!我没有把那个地方当回事!我还以为是我存的数据文件格式不对呢!谢谢!
发表于 2007-9-6 08:45 | 显示全部楼层
呵呵,下次记得看仔细啊!其实很多错误自己检查一下也是可以发现的!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-9-24 00:23 , Processed in 0.063601 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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