明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1343|回复: 6

请教一个文件操作方面的问题

[复制链接]
发表于 2005-1-19 11:58:00 | 显示全部楼层 |阅读模式
能不能第一次read-line读出一行后,第二次read-line还读这一行,请问怎么实现
发表于 2005-1-19 13:04:00 | 显示全部楼层
关闭文件后再重新打开
 楼主| 发表于 2005-1-19 13:24:00 | 显示全部楼层
飞哥,有没有别的办法,关闭后打开只对第一行有效啊
发表于 2005-1-19 13:53:00 | 显示全部楼层
关闭后打开,读几次,不就是第几行了吗
 楼主| 发表于 2005-1-19 14:15:00 | 显示全部楼层
就没有办法不重新打开就能退回去几行吗?vba这方面的功能是不是好一些
发表于 2005-1-19 14:30:00 | 显示全部楼层
Why do you want to read the first line twice?         You can        assign the content of the first line to a variable in the first read-line then use it whenever you want.
 楼主| 发表于 2005-1-19 15:32:00 | 显示全部楼层
good idea,thanks
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-9-29 20:31 , Processed in 0.236669 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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