EAGLE Help Light

Filedata Functions

Funkce
Gets the timestamp and size of a file.

Zápis
int filesize(string filename);
int filetime(string filename);

Returns
filesize returns the size (in byte) of the given file.
filetime returns the timestamp of the given file in a format to be used with the time functions.

Viz také time, Filename Functions

Příklad


board(B)
  printf("Board: %s\nSize: %d\nTime: %s\n",
         B.name, filesize(B.name),
         t2string(filetime(B.name)));


OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH