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

[Lua][Question]How to read and write to a file?

Started by Frederikam, 28 December 2012 - 10:25 PM
Frederikam #1
Posted 28 December 2012 - 11:25 PM
My name is Frederikam, and I ran into a problem, related to my turtle losing all data when it unloads. I am fairly new to programming, especially Lua programming, but I have seen this being done in this video. What I want to do with this is making a tree farm with 4 trees in a square formation, but to do this I need to save the position the turtle is in.

I appreciate anyone trying to answer here, even if you don't know how this works.
Doyle3694 #2
Posted 28 December 2012 - 11:36 PM
http://www.computercraft.info/forums2/index.php?/topic/3923-basic-file-io-learn-how-to-save-data/
Frederikam #3
Posted 28 December 2012 - 11:41 PM

Thank you, I did search for tutorials, but I didn't find this one.