Parse stream of characters
问题 Say I have an file something like this: *SP "<something>" *VER "<something>" *NAME_MAP *1 abc *2 def ... ... *D_NET *1 <some_value> *CONN <whatever> <whatever> *CAP *1:1 *2:2 <whatever_value> *1:3 *2:4 <whatever_value> *RES <whatever> <whatever> Let me describe the file once before I start describing my problem. File starts with some header notes. NAME_MAP section has the mapping information about the name and id given to that. That id would be used everywhere later when I want to specify