I am using stat function to return the filesize? But it returns -1 everytime.. Or some garbage filesize. How to get the correct file size?
in Windows 7 64 bit.