How to query the size of a file?

as title~How can I do?
[36 byte] By [leolee1022a] at [2007-11-27 9:50:41]
# 1
File.length();(Returns a long value.)
Navy_Codera at 2007-7-13 0:19:32 > top of Java-index,Java Essentials,Java Programming...
# 2
Is the return value in bytes?
leolee1022a at 2007-7-13 0:19:32 > top of Java-index,Java Essentials,Java Programming...
# 3
> Is the return value in bytes?Yep. (Assuming you mean the length of the file in bytes: ie 1074 bytes, etc...) If you mean "does it return an array of bytes?" ... then no, as in my original post, it returns a long.
Navy_Codera at 2007-7-13 0:19:32 > top of Java-index,Java Essentials,Java Programming...
# 4

> > Is the return value in bytes?

>

> Yep. (Assuming you mean the length of the file in

> bytes: ie 1074 bytes, etc...) If you mean "does it

> return an array of bytes?" ... then no, as in my

> original post, it returns a long.

Thanks a lot.

leolee1022a at 2007-7-13 0:19:32 > top of Java-index,Java Essentials,Java Programming...