Sep
23
|
You can get the size of a file (in bytes) using the length() method of the File class.
File file = new File(filename); long fileLength = file.length();
Leave a Reply
You must be logged in to post a comment.