This is an old revision of the document!
/tmp/myfile
/mnt/sdk/tmp/myfile
int filesize(string file) { fd=fopen(file,"r"); if (fd) { fseek(fd,-1); size=ftell(fd); fclose(fd); return size; } else { return -1; } }