• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copy file

 
Ajeesh Moidutty
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone demonstrate copying a file with a progressbar
with the help of essential code?

i wanna just do like this :

Select a source file
select destination
create the dest file.
open the source file byte by byte
write the dest. file byte by byte

and in between show progress.
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the principals we have here is that you Do Your Own Homework. There's only one way to learn how to write code, and that's to write code.
Have you taken a look at the Java Tutorial IO Chapter? After reading that you should be able to copy a file. Once you've got that code working, we can talk about adding a GUI to it.
 
Ajeesh Moidutty
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot joe.
i am now working on that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!