length of binary file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anuvanand1
    New Member
    • Oct 2007
    • 22

    length of binary file

    How to find the length of the binary file using C?
    please help me........
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Open the file (in binary mode), seek to the end of it and get the current position of the file pointer, close the file.

    You will need to look up these functions

    fopen
    fseek
    ftell
    fclose

    Comment

    Working...