我有一个文件格式.TXT像这样:
[Quest]
Name: The Adventure
Creator: Darius
Reward: 0g
[@New Monster]
MonsterID: 100
MonsterHP: 23987
MonsterLv: 11
MonsterDmg: 133
MonsterType: Magic
[@New Monster]
MonsterID: 101
MonsterHP: 21236
MonsterLv: 8
MonsterDmg: 95
MonsterType: Physical
[@New Item]
ItemID: 222
ItemDamage: 88
ItemType: Robe
我如何解析这个文件,以便我可以获得monsterid,monsterhp等和itemId,itemdamage等。有两个[@New Monsters]