This is a example to get size of specific file.
#include <sys/stat.h>
int main(){
struct stat buffer;
stat("FILE LOCATION",&buffer);
printf("file size : %d\n", buffer.st_size);
}
Is it worthy? kk
I forgot where it is from but I know only found this by google. :)
#include <sys/stat.h>
int main(){
struct stat buffer;
stat("FILE LOCATION",&buffer);
printf("file size : %d\n", buffer.st_size);
}
Is it worthy? kk
I forgot where it is from but I know only found this by google. :)