• Post Reply Bookmark Topic Watch Topic
  • New Topic

Smart way of checking the hard drive?

 
Peter Pan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want my Java application to check if the hard disk drive is full or not. If it is full I want the application to terminate itself.
I could of course write 1 MB of dummy data to the disk and then delete it, but I was wondering if there is a smarter way.
/Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!