[Windows API] Code to get file size

In this blog post I’ll be demonstrating different API’s and techniques used to retrieve size of a file. I haven’t tested this much, you might want to add parameter integrity check etc., also probably better error checks. Use this code at your own risk. Using GetFileSizeEx Using _wstat64 Using GetFileInformationByHandleEx Using FindFirstFileW Using fseek and […]
Continue reading…