The function you are looking for is GetFileLength().
const char *filepath = "./somedocument.pdf";
DDUMP(GetFileLength(filepath));
// Or
FileIn fi(filepath);
if(fi) DDUMP(fi.GetSize());
//Or (this is basically the same as GetFileLength()
FindFile ff(filepath);
if(ff) DDUMP(ff.GetLength());