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

Reading from text files

Started by kylergs, 01 April 2012 - 05:57 PM
kylergs #1
Posted 01 April 2012 - 07:57 PM
I am relevantly confident with lua and other programming languages but I can't get any io function to work with lua.
My aim is to read a password from a text file so that it is changeable but am having trouble with any read or write function.
Can I have some help with commands and syntax.
Advert #2
Posted 01 April 2012 - 08:44 PM
I have a fs.* tutorial in the tutorials section, I'd recommend you read that.

CC's io.* library is emulated, it actually calls the fs.* functions.