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.
Storage - Save data to files
- Roland_Yonaba
- Inner party member
- Posts: 1563
- Joined: Tue Jun 21, 2011 6:08 pm
- Location: Ouagadougou (Burkina Faso)
- Contact:
-
- Prole
- Posts: 16
- Joined: Wed Feb 05, 2014 11:31 pm
- Location: Ohio USA
Re: Storage - Save data to files
thanks that works perfect
Who is online
Users browsing this forum: No registered users and 2 guests