In standard C you can not know the size of the file, if you won't traverse it. Put a reasonable size and start coding