Posted 23 March 2013 - 05:11 PM
I have a program, and on the startup, I want it to check witha file to see different things, such as :
if it is running
if it is in the middle of executing code
actually, I think that it. I want to do this by, when it starts the the code, it will say if it is executing that code from a variable in another file, or if it is idle.
Now, the problem is the fs api. I have no idea how to use it, and I have found little help to help me here. Mostly its the path it wants. I don't know the correct syntax to put the path as. Also, I want to edit variables in the other file, and then read them upon startup. As I will have multiple variables, how could I do this without mixing up the variables?
A little more info in the program:
I am making a strip mining program, with the turtle having one large main branch, and stemming out, with pneumatic pipes sending the junk out, and sending more pipes and torches to it. I want to control it with a computer remotely, telling how much to expand it, or to just stop.
Any suggestions on how to do this better would be much appreciated.
if it is running
if it is in the middle of executing code
actually, I think that it. I want to do this by, when it starts the the code, it will say if it is executing that code from a variable in another file, or if it is idle.
Now, the problem is the fs api. I have no idea how to use it, and I have found little help to help me here. Mostly its the path it wants. I don't know the correct syntax to put the path as. Also, I want to edit variables in the other file, and then read them upon startup. As I will have multiple variables, how could I do this without mixing up the variables?
A little more info in the program:
I am making a strip mining program, with the turtle having one large main branch, and stemming out, with pneumatic pipes sending the junk out, and sending more pipes and torches to it. I want to control it with a computer remotely, telling how much to expand it, or to just stop.
Any suggestions on how to do this better would be much appreciated.