C语言 获取文件大小

1、Linux上获取文件大小 long long getFileSize(const char* path) { struct stat statbuf; stat(path. $statbuf); long long size = statbuf,st_size; return size; } 2、windows上获取文件大小 long long getFileSize(const ch
相关文章
相关标签/搜索