Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Newbie Question with file handling with C

Hi

How can I obtain information such as file size, and file type of file openned with the fopen command??

Thanks a lot,

Juan Araya,
josorio1@hotmail.com

Comments

  • kjakkjak Member Posts: 2
    : Hi
    :
    : How can I obtain information such as file size, and file type of file openned with the fopen command??
    :
    : Thanks a lot,
    :
    : Juan Araya,
    : josorio1@hotmail.com
    :

    (i'm only about a year late answering this but...)

    just make a little counter to count all the characters like this...

    [italic]
    while(fgetc(myfile)!=-1)
    counter++;
    [/italic]

    "file type"?

    "We don't know where it came from... we can't imagine where it goes..."

Sign In or Register to comment.