• Post Reply Bookmark Topic Watch Topic
  • New Topic

extract data from two different files  RSS feed

 
Eleman Teitei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please how can I extract data from two different files but produce one output. For example, the first three columns are from text_file_1 and the last column (the last foruth column of the output) is from text_file_2...thanks
 
Eleman Teitei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much
 
Junilu Lacar
Sheriff
Posts: 11490
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eleman Teitei wrote:Please how can I extract data from two different files but produce one output. For example, the first three columns are from text_file_1 and the last column (the last foruth column of the output) is from text_file_2...thanks

Welcome to the Ranch!

What have you tried so far?
 
Eleman Teitei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Junilu Lacar wrote:
Eleman Teitei wrote:Please how can I extract data from two different files but produce one output. For example, the first three columns are from text_file_1 and the last column (the last foruth column of the output) is from text_file_2...thanks

Welcome to the Ranch!

What have you tried so far?
Thank you so much for your interest. I am not good in Java..it is just avoidable at the moment.


 
Junilu Lacar
Sheriff
Posts: 11490
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you post code, please UseCodeTags (←click on that link to see how). I will add code tags for you this time.
 
Junilu Lacar
Sheriff
Posts: 11490
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to use another BufferedReader for the other file. That is, you will need to use one reader for File A and another reader for File B.
 
Eleman Teitei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Junilu Lacar wrote:You will need to use another BufferedReader for the other file. That is, you will need to use one reader for File A and another reader for File B.



Thank you so much...Deeply appreciated. But I still dont not how to insert both files in this area

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!