411 pid=fscanf(f,"%d %d %d",&i,&j,&k); I think need a new variable here. Otherwise, It may hard to understand.