Sorry for not expaling it. MY OS is Win2k Professional. This is what I am trying to do when I read a file using a loop "while != eof" then do something. But trick is the file that I am going to read will not have "eof" so I might get into an infinite loop and then I will try to handle this problem. But first I wana create a file that has no eof in it. I hope that explains it.
You will never find a normal file for while the while ! eof construct is an infinite loop.
Maybe you should explain your entire situation. Are you actually going to be dealing with normal files, or are these sockets or some other kind of pseudofile?