Posted 01 February 2013 - 10:36 AM
title: need help saving a variable to a file
I want to save a variable to a file so that it can be saved if the program restarts.
Please explain why this doesn't work.
h = fs.open("variablex", "w")
x = 5
h.write(x)
h.close()
I want to save a variable to a file so that it can be saved if the program restarts.
Please explain why this doesn't work.
h = fs.open("variablex", "w")
x = 5
h.write(x)
h.close()