• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hash map  RSS feed

 
Satishkumar Ranganathan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am working on a problem

I am trying to parse a file and trying get the values in two columns into single key \t value1, value2 etc

Input file:

key1 value1
key1 value2
key1 value3
key2 val1
key2 val2

Output file:
key1 value1,value2,value3
key2 val1, val2

Any help of how to do this will be great
 
Tim Moores
Saloon Keeper
Posts: 4036
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have so far, and where are you stuck making progress? If you haven't started yet, what ideas have you had?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!