Sorry David that was my fault. All lines have a set number of fields or columns. Null values are either zero or still delimited in the case of the {invheader} line.
Heres the most varied test data I have at the moment for anyone interested. This thread has details on the tags and commands used to get them: http://www.gammon.com.au/forum/?id=9461
149707096,G,a helm made from a dragon's skull,16,7,0,-1,-1
{invdetails}
{invheader}149707096|16|Armor|16|15|head|glow, v3||||2||
{statmod}Constitution|2
{statmod}Intelligence|-1
{/invdetails}
149700508,,an evil looking black dagger,16,5,0,-1,-1
{invdetails}
{invheader}149700508|16|Weapon|15|10|wield|evil, v3||||a value||
{weapon}dagger|13|pierce|Pierce|
{statmod}Damage roll|3
{/invdetails}
149707095,,a bone sword,16,5,0,-1,-1
{invdetails}
{invheader}149707095|16|Weapon|16|40|wield|anti-good, v3||a vlaue||||
{weapon}sword|12|slice|Slash|
{statmod}Dexterity|1
{statmod}Damage roll|1
{statmod}Intelligence|-1
{/invdetails}
141529644,K,a potion of protection,5,8,0,-1,-1
{invdetails}
{invheader}141529644|5|Potion|25|1|hold|magic, held, v3|||||a value|
{spells}1|5|4|0|0|0|0
{/invdetails}
148785709,K,a well used backpack,7,11,0,-1,-1
{invdetails}
{invheader}148785709|7|Container|90|4|back|held, v3|a value|||||
{container}40|10|11|2|11|3|70
{/invdetails}
142349796,HKG,@WChalice of the @B<(@W=@YWatchmen@W=@B)>@w,1,12,1,-1,-1
{invdetails}
{invheader}142349796|1|Drink|2000|10||unique, glow, hum, magic, v3||Some guy||a value||
{drink}31|root beer|1000|620|27|30|0
{/invdetails}
Thanks guys, this will work out well as the way I process the data from MUD is already broken into sections similar to the tables. |