File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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!
I agree. Here's the link:
subject: File IO Question
Ant error: Make sure you have it in you classpath
requested resource (first.jsp) not available
Adding a file to a program
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014