Page 1 of 1

Read Write variable from text

PostPosted: Tue Mar 13, 2018 4:57 pm
by conjure
Hi i have started writing my own strategies and i have a question.
Is it possible to read variable from text,
and then and write variable to another text?

i tried some code i found on google for LUA

Code: Select all
   local file = io.open("example.txt", "w")
file:write("Lalala. Alvanaar is amazing.")
file:close()



but it does not work

Re: Read Write variable from text

PostPosted: Wed Mar 14, 2018 5:17 pm
by Apprentice
Code: Select all
require("storagedb");
    db = storagedb.get_db(name);


Will storagedb library suffice?

viewtopic.php?f=17&t=4360


Also see Rate_log.lua
http://74.52.98.35/code/viewtopic.php?f ... f&start=10