I was just starting to learn Lua, and I'm trying to get the Lua interpreter to use a program that was saved in a .txt file. I am running Windows Vista with Lua 5.1.4.
Maybe something is missing me, but the only thing my book (Programming in Lua) says that all you need to do to run your program is to invoke an interpreter with the name of the text file that contains your program. He then gives this supposedly convenient piece of code:
% lua filename.lua
I cannot work in cmd or in the Lua interpreter. Further research that I have done shows that I may need
dofile("filename.lua")
but I'm not sure how to do this. In particular, what information do I need to include in the argument? Any help you can give is greatly appreciated.
source share