ok i've been scratching my head, look all over the web and cannot find a propper answer.
i want to serialise, or should i say save the contents of a table to a file for later reading, in the most efficient way. essentially exactly how the resources files look, and are included in addons. its quiet important its efficient as on load of the addon the addon will turn the file back into a table. the table could be big as the maximum contents of all the characters storage. i may need to nest (i think is the correct term) some tables within tables too. for example:
table = {id = xxxxx, augemnts = {[1] = xxxxxx, [2] = xxxxxxx, [3] = xxxxxx}, name = xxxxx, delay = xxxxx} etc
i basicly want to create a resource table from the 'item_description' resources and the augments of each individual item in all inventories of a character.
thanks for any help anyone can supply, my current method takes too long and makes the player red dot so long you actually DC in game.