Many a times, when we give Windows some large file copying task, our system slows down.... and that is obvious too. To pause the copy operation and to regain the normal computer speed for some time, a simple file copy program can be developed in Java.
The funda to use is to operate the file to be copied as a random access file.
Then, when the user wishes to pause it, just stop the file copy operation. When the user wishes to regain the copy-operation, open that unfinished file again and move the write pointer to its end. Now start writing the rest of the file......
Subscribe to:
Post Comments (Atom)
2 comments:
Thanks...
Interesting to know.
Post a Comment