How do I find the length (size) of a file... which is opened with fopen()?
Printable View
How do I find the length (size) of a file... which is opened with fopen()?
Use the _filelength function.
alright i figured something out that will kinda work...
I used fseek() to move the file pointer to EOF... and then used ftell()
or use GetFileSize
PHP Code:DWORD GetFileSize(
HANDLE hFile, // handle to file
LPDWORD lpFileSizeHigh // high-order word of file size
);