The export command is now complete

It was a though one but finally I managed to pull it through. Before I release the beta I will put together a function that you can use in DB/DBP to load the exported file.
This is how an exported file can look like. There will be a blank row between every main directory but this test data base only have one (Equipment). The top numbers shows the dimensions needed to load this into an array.
01--03--01--03
01 Equipment
01--01 Weapons
01--01--01 Longsword
01--01--01--01 - POW :: 10
01--01--01--02 - ATT :: 12
01--01--01--03 - SPD :: 9
01--02 Armor
01--03 Items
Edit:
Data entris now have "- " in front of them to make importing easier.