A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
File IO Question
Joined: Sep 09, 2003
Jun 03, 2004 13:53:00
I have a File object and I want to be able to know if the actual file on the disk that it references is currently being written to. Is there any way to do this?
Joined: Sep 05, 2000
Jun 03, 2004 19:46:00
To see if the file is currently being written to, you could check the size a few times using the length() method to determine if the file is growing or shrinking. I believe this will work.
Hope it helps!
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: File IO Question
Adding a file to a program
Ant error: Make sure you have it in you classpath
requested resource (first.jsp) not available
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014