How can I evaluate the size of a file?

asked 17.08.2012 at 10:34

Raphael%20S%C3%BCess's gravatar image

Raphael Süess
accept rate: 0%

The method length works if you call it on a class. A condition which filters file that are smaller than 1 MB looks like this:"", "C:/path_to_your_files/files/"+in.myFile.getPath()).length() < 1024000


answered 28.08.2012 at 10:54

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
accept rate: 70%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 17.08.2012 at 10:34

Seen: 1,254 times

Last updated: 17.08.2012 at 10:34