To get the file size in MB, you can divide the length (in bytes) by 1024 * 1024 . Note that the File#length() method returns length 0 if the file is a directory ...
確定! 回上一頁