• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on file processing using Java  RSS feed

 
Ancy Shekar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a scenario as below-

Template file – tem.txt
My variable is ${var1}
My variable is ${var2}

Input file1 – file1.txt
string1
string2
string3

Input file2 – file2.txt
text1
text2
text3



Output expected- output.txt
My variable is string1
My variable is text1
My variable is string2
My variable is text2
My variable is string3
My variable is text3

Cany anyone please explain how this can be acheived in Java?


 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You didn't get any replies because you somehow posted in a closed forum. I shall move you to the Beginning forum.
Please tell us how you think you would do that; we don't hand out complete solutions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!