性能測試培訓總結-從遠程機器打開TXT文件

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;

}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章