EOF is neither a Signal (like SIGSEGV ) nor for that matter soemthing that is not executed.
Take it this way. EOF is just a flag that the IO Library (in case of C can be stdio) sets when it reaches the end of file. this flag is usually set in the File's data structure representation by the IO Lib (or in some bad implemenations, wherever deemed necessary to allow the user of the IO Library to check). When the program that is using the IO Lib to read an IO Resource wants to konw the status of IO, it can check the EOF to see if it has reached the end of file. -- Regards --Varun S http://mailvarun.blogspot.com /* This mail was sent using 100% recycled electrons */ [Non-text portions of this message have been removed]
