Posted 21 February 2012 - 10:06 AM
Im trying to figure out how to read and write to a file but Im finding it very very confusing.
When I follow the lua tutorials or docomention I get tons of nil errors and such.
Could someone place give me code which creates a file on first run, Sets different variables on each line and then can call on each line at will.
So basically.
I run "remember"
That makes a new file "forget"
Inside forget
So then I can run some other program.
And fetch the variables.
if Always == "Remember" then os.explode()
I would like to look at the code :)/>/>
When I follow the lua tutorials or docomention I get tons of nil errors and such.
Could someone place give me code which creates a file on first run, Sets different variables on each line and then can call on each line at will.
So basically.
I run "remember"
That makes a new file "forget"
Inside forget
Remember = "The first"
Always = "Remember"
Gonna = "Hey"
So then I can run some other program.
And fetch the variables.
if Always == "Remember" then os.explode()
I would like to look at the code :)/>/>