Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ determining the size of a file
Name: iamthejake2000 Date: October 23, 2005 at 17:42:16 Pacific OS: XP Pro x64, 98, MS-DOS 6. CPU/Ram: Athlon 64 3200+, 768MB 51
Comment:
I'm learning C++ and am working with console applications. With fstream, how can I determine the exact size of a file in bytes? Thanks.
Summary: I'm running FreeBSD 3.4-RELEASE, GNU 2.72 C/C++ compiler. I want to know what function returns the length of a file. I could read each byte until I reach the end, but there's got to be a function. I...
Summary: How can I determine the size of a memory block allocated by malloc? I tried using sizeof on the pointer to the memory block but it returns the size of the pointer and not the memory block. IŽd like to...