#include
int main(int argc, char *argv[])
{
char path[1024*8];
FILE *fp;
if (argc < 2) {
printf("\nnadplay play_list_file [123]\n\n");
return;
}
fp = fopen(argv[1],"r");
if (fp == NULL) {
printf("Couldn't open %s\n", argv[1]);
return;
}
for (;;) {
while (fgets(path, sizeof path, fp)) {
printf("%s", path);
}
fseek(fp, 0L, SEEK_SET);
sleep(1);
printf("\n\n====================================\n\n");
}
}
阅读(5767) | 评论(0) | 转发(0) |