Para mi, lo más sencillo es usar: filelength #include <io.h> #include <fcntl.h> #include <sys\stat.h> #include <stdio.h> //ESTA FUNCION RETORNA EL TAMAÑO DE UN ARCHIVO long SizeF(char* f) { int h; long t; if((h = open(f, O_BINARY)) == -1) return -1; else { t = filelength(h); close(h); } return t; }