Posted 04 April 2012 - 09:58 PM
I am trying to read text from a file in CraftOS.
Here is my code:
h = fs.open("settings.cfg", "r")
text = h.readLine()
h.close()
print(text)
I get an attempt to index ? error. What do I do?
Thanks.
Here is my code:
h = fs.open("settings.cfg", "r")
text = h.readLine()
h.close()
print(text)
I get an attempt to index ? error. What do I do?
Thanks.