fread() returning zero
-
Hi, I am reading a file using C into a buffer (structure). For 7 times I am reading it without error but when I try to read that 8th or 9th time it is reaidng the content into buffer but fread() is returning zero can anybody suggest me what mey be the reason. Thanks in advance, Regards, Hema.
-
Hi, I am reading a file using C into a buffer (structure). For 7 times I am reading it without error but when I try to read that 8th or 9th time it is reaidng the content into buffer but fread() is returning zero can anybody suggest me what mey be the reason. Thanks in advance, Regards, Hema.
You probably reached the end of the file. You are probably seeing the previous contents in the buffer when
fread
returns 0.«_Superman_» I love work. It gives me something to do between weekends.