Copy Data From One File To Another File Program in Java - FindersAdda : Tutorials of Make Money, Computer or Internet

Monday, 20 November 2017

Copy Data From One File To Another File Program in Java

java program

First of all, create a text file with "First.txt" name and save it in which folder your program will be saved.

First.txt text file

In this program, we have used FileInputStream class for read data from one file and FileOutputStream class for write data in another file.

First of all, Compile this program by


and then run the program

     java CopyData

Output of the above program

After copied in the second text file

About Author


Author & Editor

Myself Sumit Kumar Gupta & 21 year's old person. I am a programmer and blogger. I spend much more time on programming and blogging and helps other programmers and bloggers.


Post a Comment

We are eager to see your comments.
Comment Rule :

1. Don't use any link in the comment box. If you have any problem related to link then contact me with the contact form.

2. Don't use the wrong word if you write the wrong word in comment box then it will get spam.