您的位置:首页 > 其它

性能测试培训总结-从远程机器打开TXT文件

2013-05-21 14:40 302 查看
int *fp;
fp = (int*) fopen("\\\\machine_name\\shared_name\\dir_name\\filename","attribute");//该函数具体看查看帮助手册
long stream;
char file_path[100];

Action()
{
sprintf(file_path,"%s\\yourfile.txt",lr_get_attrib_string("usr"));
if((stream = fopen(file_path,"r"))!=NULL)
{
lr_output_message(file_path);
fclose( stream );
}
else
lr_output_message("the file can't be opened");
return0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  技术 LoadRunner 讲座