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

Saving stuff

Started by vivanewvegas, 19 October 2012 - 04:59 PM
vivanewvegas #1
Posted 19 October 2012 - 06:59 PM
I've got this program which gets 2 variables from a user, a username and an amount. Let's say they're called "username" and "amount". Now, i'd like the program to create a new file in the "/disk/files" directory with the username as name for the file and the amount inside the file.

Is it even possible to do this and how?
stan2012 #2
Posted 19 October 2012 - 07:04 PM
this a nice tutorial about file reading and writing
http://www.evilmana.com/tutorials/lua_tutorial_09.php
vivanewvegas #3
Posted 19 October 2012 - 07:08 PM
this a nice tutorial about file reading and writing
http://www.evilmana....tutorial_09.php
THANK YOU SO MUCH, this was EXACTLY what i was looking for :P/>/> Thanks!