QFile p_file("temp");
if (!p_file.open(QIODevice::WriteOnly | QIODevice::Text))
{
return;
}
QTextStream p_out(&p_file);
p_out << tmp_str;
FILE *fd;
char s []="ProfileEtherSAM\n!\n";
char *file = "temp";
char *mode = "w+";
fd=fopen(file,mode);
fwrite(s,sizeof(s),sizeof(s),fd);
fclose(fd);
char buf[100] = {0};
sprintf(buf,"echo %d > tmp",verdict_up);
system(buf);