51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3107|回复: 2
打印 上一主题 下一主题

file_open(file1,FO_MODE_READ);

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-10-26 18:56:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我在很多人的代码中都看到file_open(file1,FO_MODE_READ);其中我非常不明白FO_MODE_READ是怎么得来的?是手动写的吗?还是自动生成的?
如果是手动写的,我每次执行到FO_MODE_READ这里就通不过!望高手指点!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2006-10-27 09:37:48 | 只看该作者
opens a file or creates a new file.

file_open ( file_name, mode );

file_name                 The name of the file to open or create.
mode                 The file mode:
                  FO_MODE_READ, or 0 (read only);
                          FO_MODE_WRITE, or 1 (write only);
                          FO_MODE_APPEND, or 2 (write only, to the end of the file).

Note that if the file does not exist in the specified path, then if the file mode is FO_MODE_WRITES, WinRunner creates the file. If the specified path does not exist, the file is not created and the command fails.

WinRunner, Mercury Interactive and the Mercury Interactive logo are registered trademarks or trademarks of Mercury Interactive Corporation in the United States and/or other countries.

[ 本帖最后由 tianyu124 于 2006-10-27 09:38 编辑 ]
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2006-10-27 10:05:50 | 只看该作者
谢谢!tianyu124
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-10-6 00:35 , Processed in 0.081138 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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