Difference between revisions of "Jupiter"
m |
m (Added i18n) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Jupiter is a file | + | Jupiter is a file I/O and table serialisation library written by Lafolie. |
− | You can download the script from [ | + | == Usage == |
+ | |||
+ | Designed to be easy to use, Jupiter takes a table structure and saves it to a file. You can edit these files in your favourite text editor, or even write them from scratch, and re-load them into your project at a later date. | ||
+ | |||
+ | A simple implementation looks like this: | ||
+ | |||
+ | <source lang="lua"> | ||
+ | jupiter = require "jupiter" | ||
+ | |||
+ | --setup a table | ||
+ | data = {_fileName = "example.txt", "Save this string!"} | ||
+ | --write the file (Jupiter handles filenames by referring to data._fileName) | ||
+ | success = jupiter.save(data) | ||
+ | --load another file into a table | ||
+ | newData = jupiter.load("filename.extension") | ||
+ | </source> | ||
+ | |||
+ | == Get Jupiter == | ||
+ | You can download the script from [http://github.com/Lafolie/Jupiter Jupiter on github] | ||
{{#set:LOVE Version=0.8.0}} | {{#set:LOVE Version=0.8.0}} | ||
− | {{#set:Description=Table serialisation and file | + | {{#set:Description=Table serialisation and file I/O.}} |
+ | {{#set:Keyword=Serializing}} | ||
[[Category:Libraries]] | [[Category:Libraries]] | ||
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|Jupiter}} |
Latest revision as of 00:31, 16 December 2019
Jupiter is a file I/O and table serialisation library written by Lafolie.
Usage
Designed to be easy to use, Jupiter takes a table structure and saves it to a file. You can edit these files in your favourite text editor, or even write them from scratch, and re-load them into your project at a later date.
A simple implementation looks like this:
jupiter = require "jupiter"
--setup a table
data = {_fileName = "example.txt", "Save this string!"}
--write the file (Jupiter handles filenames by referring to data._fileName)
success = jupiter.save(data)
--load another file into a table
newData = jupiter.load("filename.extension")
Get Jupiter
You can download the script from Jupiter on github
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