file manipulation

1.I would like to take primitive line commands.
2. Then I would like to store them as text in a data file.
3. Then I would like to retrieve the commands from the data file.
4. Then I would like to use these retrieved commands.
5. I would like to do this by making the text command into an actual functional command.
6. Is there a simple predefined function that would take such text, and turn it into a functional part of a program?
7. I would like it to be as simple as possible.
8. Thank you for your input :)
9. If you want, you can email me directly at hybridsealy(at)comcast.net
Do you currently know anything about c++? And those aren't even questions, those are statements/commands. I doubt you'll be getting any constructive replies.
You are looking for an interpreter.

Check out Tcl http://www.tcl.tk/
and be sure to read up on how to embed it in a C or C++ program http://wiki.tcl.tk/3474

There is also Python http://www.python.org/
and information on embedding it in your program http://docs.python.org/3.0/extending/embedding.html

In either case, you will need to download the appropriate headers and the source or DLLs to link with.

You can, of course, write your own script interpreter, but for the grief involved, you might as well just use one already written for the job.

Good luck.
Topic archived. No new replies allowed.