Page 2 of 2

Re: Storage - Save data to files

Posted: Mon Jun 23, 2014 4:57 pm
by Roland_Yonaba
Well, if you need to serialize objects, nested tables, I will strongly advise to look for a serialization library.
Usually, a serialization lib will take as an input a table, and convert it to a string. Therefore, you can write this very string by yourself into a file using love.filesystem. You can always use Lua's io library, but love.filesystem is recommended.
As for serialization libraries, there's the excellent and lightweight Ser. You can find more on the wiki.

Re: Storage - Save data to files

Posted: Mon Jun 23, 2014 5:17 pm
by DarthGrover
thanks that works perfect