I have problems handling file:
1) Look at this piece of code :
File has 5 name like this :
This while loop reads till name4. then reads name5.
Now, it should stop here.
But it goes and reads name 5 again and then comes out.
I do not understand how.
2)In my program I am writing some thing into a file.
while this process is going on, I am not able to see anything written to the file using VI editor.
I am doing fflush() soon after I write to the file.