重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

c/c++获取文件大小的方法

#include 
#include 
#include 
#include using namespace std;void main()
{    char *filepath = "C:\\1.txt";    //方法一    
    HANDLE handle = CreateFile(filepath, FILE_READ_EA, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);    if (handle != INVALID_HANDLE_VALUE)
    {        int size = GetFileSize(handle, NULL);
        cout<            
            
                        
新闻名称:c/c++获取文件大小的方法
分享地址:http://cqcxhl.com/article/ihiigc.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP