This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Computercraft Turtle's profile picture

How to make a computer remember a variable?

Started by Computercraft Turtle, 30 January 2013 - 08:00 AM
Computercraft Turtle #1
Posted 30 January 2013 - 09:00 AM
Hey guys,im trying to make a OS in CC, and i was wondering if there was a way to,instead of having to create a new user account everytime (a feature on my OS), make a computer "remember" a variable,so when i turn off the computer,it doesnt clear my name variable? Thanks guys!
Cranium #2
Posted 30 January 2013 - 09:13 AM
Split to new topic.
ChunLing #3
Posted 30 January 2013 - 11:24 AM
Use the fs or io API to save/read a file.