io.read()
io.write()
Is not working for Ti-Nspire
How should I use this right
From the TI-Nspire Lua Scripting API Reference Guide Page 2:
The following standard Lua libraries are not available in the TI-Nspire software: file io os debug
The io library does not exist hence you cannot use any of its functions.
There is no io.read() and io.write(). There is print() (which works as expected), but it's only meant to be used for debugging. If you need a console for your program, you might as well write your own. You could also use Jens' Script Editor (I use it) https://www.ticalc.org/archives/files/fileinfo/464/46492.html which is standard nspire lua + a console you can use (with io.read() and io.write())
io.write()with no arguments produces no output. - lhf