#include
#include

#define max 100

int main(int argc,char *argv[])
{
char startStr[200];
char str[max];
FILE *fp;

fp = fopen("Chrome廣告.txt","r");


while(!feof(fp))
{

fgets(str,max-1,fp);

strcpy(startStr,"start ");
strcat(startStr,str);

printf("%s",startStr);
system(startStr);
}

fclose(fp);

printf("\n");
system("pause");
return 0;
}

文章標籤

小賢 發表在 痞客邦 留言(2) 人氣(354)