Click here to Skip to main content
13,353,706 members (55,318 online)
Rate this:
Please Sign up or sign in to vote.
See more:
suppose i have a text file as data.txt has following content such as ""|""|"" ""|""|""|"" ""|""|""

I have another text file as token.txt has following content such as
"" 100
"" 200
"" 300

i want to make new file as result.txt that should contain the following data such as 100 200 300 200 300 100 100 200 300 200 

I want code in java language
Posted 17-Aug-12 6:34am
Updated 17-Aug-12 10:32am
Wes Aday 17-Aug-12 11:39am
It would appear that you have mistaken CodeProject for a jobs board. Perhaps you meant to go to
gladiatron 17-Aug-12 11:44am
Chris Maunder should consider renaming "Code Project" to something else I suppose:) Some people seem to be interpreting as "Code for Project work"
Wes Aday 17-Aug-12 11:46am
They just don't bother reading the guidelines that are displayed with each and every question.
Albert Holguin 17-Aug-12 15:08pm
Reading!? ...that's :p
gladiatron 17-Aug-12 11:40am
We don't do your homework or projects for you. If you want that service try Code Project is where programmers come together to discuss and solve problems not writing code for lazy people.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

This is actually trivial to do. You read your files, first building an index of strings to numbers, then parse your other file, and look up numbers from the strings. As others said, we're not here to do your job for you, attempt to do your own work and ask us for specific help, or tell your boss/teacher that programming is not for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180111.1 | Last Updated 17 Aug 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100