wipelog.c
#include<stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp;
if ((fp=fopen("/opt/mycat/logs/wrapper.log","r")) == NULL)
//if ((fp=fopen("./test.log","r")) != NULL)
{
printf("be opened.\n");
fp=fopen("/opt/mycat/logs/wrapper.log","w");
fclose(fp);
//exit(1);
}
}