Difference between revisions of "libSaveTableToFile"
m (Linkification) |
m (Added: Other Languages) |
||
(One intermediate revision by one other user not shown) | |||
Line 12: | Line 12: | ||
{{#set:LOVE Version=Any}} | {{#set:LOVE Version=Any}} | ||
{{#set:Description=Load and save tables as text files.}} | {{#set:Description=Load and save tables as text files.}} | ||
+ | {{#set:Keyword=Serializing}} | ||
[[Category:Libraries]] | [[Category:Libraries]] | ||
+ | == Other Languages == | ||
+ | {{i18n|libSaveTableToFile}} |
Latest revision as of 15:58, 15 December 2019
On the Lua Users Wiki are a few solutions for serializing tables. This entry is about the one called Save table to file.
It provides two functions:
- table.save(tbl, filename) saves a table to a text file.
- table.load(filename) generates a table from the output file from
table.save()
.
They allow you to easily save and load complex data. It uses Lua syntax for the data files, so it is easy to edit by hand.
It is licensed under the same license as Lua and available here.
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info