fread returning 0 wen it fail to read ,so better you have to check it ,for come out of the loop .
Type: Posts; User: oops..
fread returning 0 wen it fail to read ,so better you have to check it ,for come out of the loop .
hi
I think you are reading from "office out" in r+ mode,and your writing to the same file.so it will be a infinite loop..because when write to the same file it will again not reaching EOF.
i think...