I know this is a really basic question but I’ve been searching the internet for days and I still can’t find the answer. I’ve just started learning Lua and I’m going to write a text based adventure game. I’m using LuaEdit to edit my Lua code however I can’t use io commands. On the Lua commandline it works if I type io.read() but it doesn’t work on the editor. After searching the internet I can’t find how to import the library if there is one.
Share
The library doesn’t need to be imported by default. Your environment might have disabled it – but either way, seeing the error msg that happens when you try to use io.* and your knowing your editor would help.