性能测试培训总结-从远程机器打开TXT文件
2014-07-25 12:39
253 查看
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;
}
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;
}
相关文章推荐
- 性能测试培训总结-从远程机器打开TXT文件
- 性能测试培训总结-message函数
- 性能测试培训总结-loadrunner测试mysql 推荐
- 浅析性能测试培训总结-IP欺骗
- 性能测试培训总结-spotlight on mysql
- 性能测试培训总结-spotlight on mysql
- 性能测试培训总结-利用LoadRunner来制造数据
- 性能测试培训总结-loadrunner测试mysql
- 性能测试培训总结-loadrunner测试mysql
- 新员工培训用的后台性能测试基础理论总结
- 性能测试培训总结-利用LoadRunner来制造数据
- 性能测试培训总结-spotlight on mysql
- 性能测试培训总结-利用LoadRunner来制造数据
- 性能测试培训总结-关联后如何使用该值?lr_save_string帮你
- 性能测试培训总结-Abnormal termination, caused by mdrv process termination
- 性能测试培训总结-axwin frame window:thumbprocess.exe 解决方法
- 性能测试培训总结-message函数
- 性能测试高级工程师培训总结
- 性能测试培训总结-强大的nmon监控
- ios开发之使用UIWebView打开本地的HTML、txt、PDF、PPT文件、打开远程的共享资源