Use of Thread in java in reading and writing a file
I want to make a program of reading a file line by line and writing that lines into another file.But, I want to solve this problem using Java Thread. 1st Thread is reading a line and that line should be passed via message passing to another thread which is responsible for write that line into another file.This process should be performed until end of file is encountered.

How to perform this task?
Use of Thread in java in reading and writing a file
===

I want to make a program of reading a file line by line and writing that lines into another file.But, I want to solve this problem using Java Thread. 1st Thread is reading a line and that line should be passed via message passing to another thread which is responsible for write that line into another file.This process should be performed until end of file is encountered.

How to perform this task?