@Wouter: thanks for the advice.....I will try to embed the suggestion given by you into my code. But, is it possible to write into single file through multiple threads?
@John: Please find the modified code below:
[Example.java]
[TestFind.java]
Waiting for reply....as i m really stuck