0
votes
io.read()
io.write()

Is not working for Ti-Nspire

How should I use this right

2
io.write() with no arguments produces no output. - lhf
Of course! That's not my problem. There's an error at this line. - user9222646
"an error" are you serious? - Piglet
Yes, I wanted to run with a special software for Ti-Nspire @Piglet - user9222646
you can't just say "an error" expecting others to help you. you have to provide more information like the actual error message... please read How to Ask - Piglet

2 Answers

2
votes

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.

0
votes

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())