Reputation: 3
io.read()
io.write()
Is not working for Ti-Nspire
How should I use this right
Upvotes: 0
Views: 528
Reputation: 521
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()
)
Upvotes: 0
Reputation: 28950
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.
Upvotes: 2