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;
}
本文转自 小强测试帮 51CTO博客,原文链接:http://blog.51cto.com/xqtesting/1205615,如需转载请自行联系原作者