Exforsys
+ Reply to Thread
Results 1 to 2 of 2

End of File

This is a discussion on End of File within the C and C++ forums, part of the Programming Talk category; What is the use of feof in C programming language? I want to whether one needs to explicitly check for ...

  1. #1
    Angela is offline Member Array
    Join Date
    Apr 2006
    Answers
    85

    End of File

    What is the use of feof in C programming language? I want to whether one needs to explicitly check for end of file in a C programming language.


  2. #2
    Adrian is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    The feof of C programming language is used for testing the end-of-file condition. feof takes one argument -- the FILE pointer -- and returns a nonzero integer value (TRUE) if an attempt has been made to read past the end of a file. It returns zero (FALSE) otherwise.


Latest Article

Network Security Risk Assessment and Measurement

Read More...