Site Tools


This is an old revision of the document!


SDK Related FAQ

  • Q: I cannot find /tmp/myfile which is generated with SDK. Where is it?
    • A: See /mnt/sdk/tmp/myfile.

How can I get the file size?

int filesize(string file) {
  fd=fopen(file,"r");
  if (fd) {
    fseek(fd,-1);
    size=ftell(fd);
    fclose(fd);
    return size;
  } else {
    return -1;
  }  
}