>>131
> fscanf(fp,"log.txt",&count);
二番目の引数を再確認してみ