Posted 08 July 2015 - 10:23 AM
Hello!
I've been working on my OS for quite some time now, and I have run into the need to implement in my API a function to read variables out of files. These can be, and usually are, standard programs which happen to have a variable that I need in my main loop to execute them properly. How do I do this? The desired output would be a table similar to that returned by os.loadAPI, but with variables instead of functions, the index being the variable name and the value, its value. Thanks a lot!
I've been working on my OS for quite some time now, and I have run into the need to implement in my API a function to read variables out of files. These can be, and usually are, standard programs which happen to have a variable that I need in my main loop to execute them properly. How do I do this? The desired output would be a table similar to that returned by os.loadAPI, but with variables instead of functions, the index being the variable name and the value, its value. Thanks a lot!