Storage - Save data to files

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Storage - Save data to files

Post 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.
DarthGrover
Prole
Posts: 16
Joined: Wed Feb 05, 2014 11:31 pm
Location: Ohio USA

Re: Storage - Save data to files

Post by DarthGrover »

thanks that works perfect
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests